-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Internal server error: Failed to load PostCSS config #836
Comments
I don't know, but it seems related to vitejs/vite#5316 |
I ran into the same issue on linux. Following the error message I could at least rename the files to |
Qwik City is using Vite 3 now, which went all in on ESM. CommonJS files need to be explicitly named as .cjs, like @dacki said. 👍 |
had the same error. i removed the |
Thanks! also worked for me too! |
mee too @chmich |
I solved this issue by deleting the node_modules directory, and ran |
mee too @chmich |
Tive esse erro usando o linux ubuntu. Eu removi trocando a extensão .js do arquivo (postcss.config.js) para extensão .cjs ( postcss.config.cjs). |
This worked instantly |
I have the same problem with vuetify 3, none of this above works for me. Any ideas ? |
I had the same issue but when I removed postCSS.config file it worked! |
For those who are trying to make Tailwind work with Vite, follow below steps:
The above is array format for plugins. |
In my case delete |
vite 4.3.6 |
Add |
What @phukao said also solved another problem for me. Only way to get svelte to run on vite. |
``dfdf |
@chmich, I'm using Svelte on WSL2. I was getting the same error, but I just run npm install -D tailwindcss postcss autoprefixer and it worked. |
its worked |
the best solution |
Resolved this by upgrading to postcss@8.4.28 and tailwind@3.3.3 (on vite@3.1.3). |
Thaaaaaaaaaaaaaaaaaaaaks |
nice. it works. thank you so much. |
Replacing
|
the best solutions thank you |
This is bext solution. |
not working for me my error is similar tho: |
@adamaslan looks like there's a missing ( on line 4 in your index.css file that it doesn't expect. |
VITE v4.5.3. I rename postcss.config.js and this works for me. thanks.... Anyway, there is still no fixed solution to this problem, the solutions still vary. I don't know the root cause. |
I had same issue and it worked for me using the above reference |
This helped me too 19/04/24 |
These are the steps that worked for me:
|
Only deleting the file |
with VITE 4.5.3 Rename |
removed the postcss.config.js and it will works. |
Qwik Version
"@builder.io/qwik": "0.0.38", "@builder.io/qwik-city": "0.0.23"
Operating System (or Browser)
Win10
Node Version (if applicable)
16.13.1 (Currently using 64-bit executable)
Which component is affected?
Starters / CLI
Expected Behaviour
Opening the initial page in the browser
Actual Behaviour
Steps to reproduce from the terminal:
npm init qwik@latest
Select a name to the project
Select starter: Qwik city
Select server: Cloudflare Pages
Select features: Prettier, Tailwindcss
Move to the project folder
Run npm install
Run npm start
Additional Information
Full error output: qwik_terminal_output.txt
The text was updated successfully, but these errors were encountered: