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 CSS did not loaded for create-next-app@latest --experimental-app #44275

Closed
1 task done
IRediTOTO opened this issue Dec 22, 2022 · 24 comments
Closed
1 task done

Error CSS did not loaded for create-next-app@latest --experimental-app #44275

IRediTOTO opened this issue Dec 22, 2022 · 24 comments
Labels
examples Issue/PR related to examples

Comments

@IRediTOTO
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
Platform: linux
Arch: x64
Version: Ubuntu 20.04.0 LTS Thu Dec 22 2022 19:59:01 GMT+0100 (Central European Standard Time)
Binaries:
Node: 16.14.2
npm: 7.17.0
Yarn: 1.22.19
pnpm: 7.13.6
Relevant packages:
next: 13.1.0
eslint-config-next: 13.1.0
react: 18.2.0
react-dom: 18.2.0

Which example does this report relate to?

https://beta.nextjs.org/docs/installation

What browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

No response

Describe the Bug

I just want to test Next 13.1, but it failed from start.
On local, No CSS loaded, I tried to change to SCSS but still not work too
image
On stackblitz I got. Project can't run

Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/nextjs-ktwu29/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node

Expected Behavior

CSS load normal

To Reproduce

https://stackblitz.com/edit/nextjs-ktwu29?file=app/layout.tsx

@IRediTOTO IRediTOTO added the examples Issue/PR related to examples label Dec 22, 2022
@quick007
Copy link

Getting the same error locally. Glad it's not just me 😅

@quick007
Copy link

@IRediTOTO Can you change the name to be a bit more descriptive

@IRediTOTO
Copy link
Author

Can you suggest me?

@IRediTOTO IRediTOTO changed the title Error for create-next-app@latest --experimental-app Error CSS did not loaded for create-next-app@latest --experimental-app Dec 22, 2022
@Riko2909
Copy link

same here, but the css of some 3rd party UI-Libarys are loading!

@BWBama85
Copy link

Doesn't load tailwindcss after upgrade to 13.1.0 for me.

@alaindeurveilher
Copy link

nextjs-13 1 0-css-not-working-2

@kaceycleveland
Copy link

Has not worked since the past canary builds and 13.1.0; was hoping it would be fixed on 13.1.0.

@rkanani108
Copy link

Doesn't load tailwindcss after upgrade to 13.1.0 for me. Please guys look in to this.

@viperxeyes
Copy link

viperxeyes commented Dec 23, 2022

same here , css not loading in app directory only but works fine in pages.
maybe it has something to do with this #44151 ?

Update: i tried on my Arch Linux and everything is working fine as expected , seems to happen with me on windows 11.

@cpakken
Copy link

cpakken commented Dec 23, 2022

With the experimental appDir: true

next dev --turbo css works and loads fine
next dev css does NOT work

But next build still relies on the non turbo version so can't rely on turbo

@Usmani391
Copy link

Anyone got solution same with me tailwind is not loading

@huseyinkryl
Copy link

It happens to me with tailwindcss. I have tested 13.0.1

@AlexMcClay
Copy link

AlexMcClay commented Dec 23, 2022

The same thing happens to me, no CSS is loading. With global CSS imported in the layout.tsx files and CSS modules in other .tsx files. I'm running windows 11 and this happens in the app directory, havnt checked the pages directory.

@dhaaana
Copy link

dhaaana commented Dec 23, 2022

The tailwindcss not loading issue also happens to me when I use the app directory. I've tried switching to the pages directory and the tailwindcss loads fine.

@viperxeyes
Copy link

If you have linux it works perfect , if you upload to vercel also works fine , the problem seems to only occure on windows through "dev and build" but not when uploaded to vercel or linux . someone need to look into this.

@Earle-Poole
Copy link

Earle-Poole commented Dec 23, 2022

Adding onto the pile.

Updated my project from 13.0.6 to 13.1 and Tailwind has stopped loading entirely, without any error messages on client or server.

Edit: Also on Windows 10.

@BWBama85
Copy link

If you have linux it works perfect , if you upload to vercel also works fine , the problem seems to only occure on windows through "dev and build" but not when uploaded to vercel or linux . someone need to look into this.

I am beginning to think no one at Next.js actually tests the app folder on Windows before releasing a new version which is insane to me.

@nicolas-angelo
Copy link

nicolas-angelo commented Dec 23, 2022

Same issue for me on Windows. Just updated to 13.1.0 from 13.0.8-canary.2 and Tailwind no longer works.
Works with turbo but I can't use turbo due to project setup

@alaindeurveilher
Copy link

I have the same problem. I am on Windows, at the moment I npm run dev — —turbo but it raised other issues, not easy to work around. It’s a very short momentarily workaround but I really hope they will it very soon.

I wonder if it works in WSL2 in Windows though. Could be another temp solution in the meantime.

@selenecodes
Copy link
Contributor

Having the same issue on Windows 10

@alaindeurveilher
Copy link

There is a PR in progress for a fix: #44305

@kijv
Copy link

kijv commented Dec 23, 2022

This issue is resolved in the latest canary version (v13.1.1-canary.0). And directly solved in #44310

@timneutkens
Copy link
Member

I've released a new stable patch version: https://github.com/vercel/next.js/releases/tag/v13.1.1, it'll take ~15mins before it's on npm. Happy holidays!

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

No branches or pull requests