-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
using tailwindcss + nextjs and alpinejs #1539
Copy link
Copy link
Closed
Description
👋 Hey folks, I've been trying to use NextJS with Tailwindcss and AlpineJS together.
In Tailwind Heros examples, first example actually, shows that alpine imported via script tag but when wanna use NextJs and import even with turning off the SSR but still got Unexpected token which indicate @click="open = true" line. I get confused why It's not worked.
The way I use to turn off SSR in NextJS and import AplineJS :
export default dynamic(() => import('alpinejs')&& (Promise.resolve(IndexPage)),{ ssr: false })
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
