-
I tried to install tailwindcss with guidance from the documentation tailwindcss as well as nextjs, but I still can't use it and get the following error
am I missing something very important? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes it seems like you might have! Please consider providing a remotely-hosted git repository that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
I have this same issue when using the vercel cli "dependencies": { |
Beta Was this translation helpful? Give feedback.
-
i explained the solution that worked for me here andrevesdickow/nextjs-lerna#2 that worked to overcome the error in addition to removing next-transpile-modules from the package.json file as mentioned above by @RealYukiSan since it is deprecated, it was also necessary to follow the migration guide mentioned here https://github.com/martpie/next-transpile-modules/releases/tag/the-end and change your next.config.js file if necessary, which was the crucial step that worked for me. i just wish the Tailwind installation instructions here https://tailwindcss.com/docs/installation mentioned the migration guide as that would have saved me a couple of hours trying to figure out why it wouldn't work, since that's necessary if you're trying to pick up an old project that used an older version of Tailwind. |
Beta Was this translation helpful? Give feedback.
thanks for the very quick response, sorry it was my fault for using the deprecated next-transpile-modules package, I tried to remove it and now tailwindcss works properly!