-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[Windows] Build failing on global CSS imports in _app
#28579
Comments
Can't reproduce following these steps (I'm on Linux if that matters) |
@awareness481 Yeah I just tested it on Linux. It is working fine for me too. It appears to be an issue with path separators. |
_app.tsx
_app
Just reproduced the error on Windows 👍 |
This error made it to v.11.1.1 release. Windows 10 computer. |
Can confirm this issue. It brokes |
Hi, this should be updated in the latest canary of Next.js |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11.1.1-canary.17
What version of Node.js are you using?
14.17.5
What browser are you using?
N/A
What operating system are you using?
Microsoft Windows 10.0.22000
How are you deploying your application?
next build && next start
Describe the Bug
If I'm importing any global CSS file in
_app.tsx
the build is failing with the following error:The issue is probably due to: #28279 as the code is working fine on older canary versions (v11.1.1-canary.11 and below). Below are the complete logs:
UPDATE:
The same error is on JS projects too:
The only difference I can see now is the path separator.
ANOTHER UPDATE:
The code is working fine on POSIX environments. This is indeed an issue with path separator.
Expected Behavior
The build should succeed (would be better if without warnings).
To Reproduce
yarn create next-app --ts foobar cd foobar yarn add next@canary yarn build
The text was updated successfully, but these errors were encountered: