Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error to run npm run dev #60

Open
clauestay opened this issue Jan 23, 2025 · 1 comment
Open

error to run npm run dev #60

clauestay opened this issue Jan 23, 2025 · 1 comment

Comments

@clauestay
Copy link

Hello, I have cloned the repository and tried to run it but I get the following error:

[vite] Internal server error: [postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install @tailwindcss/postcss and update your PostCSS configuration.
  Plugin: vite:css
  File: /app/src/assets/styles.scss:undefined:NaN
      at Te (/app/node_modules/tailwindcss/dist/lib.js:33:1740)
      at LazyResult.runOnRoot (/app/node_modules/postcss/lib/lazy-result.js:329:16)
      at LazyResult.runAsync (/app/node_modules/postcss/lib/lazy-result.js:258:26)
      at LazyResult.async (/app/node_modules/postcss/lib/lazy-result.js:160:30)
      at LazyResult.then (/app/node_modules/postcss/lib/lazy-result.js:404:17)

@cantin-f
Copy link

I've the same error when I upgrade tailwind to 4.0. Works well with 3.X version.
Template is not compatible with tailwind 4 even if you resolve this error by using @tailwindcss/postcss. You will get a LOT of display error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants