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

[vite-node] [plugin:vite:css] [@tailwind base; and other imports #48

Open
ElvinKyungu opened this issue Sep 25, 2023 · 1 comment
Open

Comments

@ElvinKyungu
Copy link

ElvinKyungu commented Sep 25, 2023

How can I solve this problem with nuxtjs?
Is it linked to the import?
Because I have my main.css file in assets/css that I import from my nuxtconfig file.

And I don't know what the problem is

@ElvinKyungu ElvinKyungu changed the title [vite-node] [ERR_LOAD_URL] /config.js [vite-node] [plugin:vite:css] [@tailwind base; and other imports Sep 25, 2023
@emlazaro
Copy link

emlazaro commented Feb 9, 2024

@ElvinKyungu

Have you tried configuring the postcss in your nuxt.config.ts file like this?

postcss: {
    plugins: {
      "postcss-import": {},
      "tailwindcss/nesting": {},
      tailwindcss: {},
      autoprefixer: {},
    },
},

also don't forget to npm install tailwindcss/nesting and npm install postcss-import.

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