-
-
Notifications
You must be signed in to change notification settings - Fork 432
"component.css is undefined" on fresh install #1256
Comments
I investigated a bit, and it seems the error is only present on Windows, for some unknown reasons. I tested the exact same project on Linux and it just works... The thing that bothers me is that it "used to work" and now it doesn't work anymore after an upgrade, but there are so many dependencies that I can't find which one could cause the issue. |
More research: when running all these commands inside a Docker container but in Windows, everything works. So it's definitely very specific to Windows. |
Can't reproduce it on Windows 10 (neither on WSL2) + Firefox 77 + Node 12 |
It would be useful if some other Windows users could confirm/deny this issue. |
Yep, I'm starting to wonder whether it's an isolated individual issue or not... 🤔 |
Windows 10, WSL-2 running ubuntu, issue not repeatable on my workstation. |
Have you tried when not using WSL? I'm using native windows nodejs installation 😕 (this issue really tricks me, I had to use Docker as a workaround, but it's not perfect 😄 ) |
tested: issue not repeatable |
I guess it has something to do with my machine then 😭 |
I think so. Come and see if there is more support available in chat? |
I'll join :) |
I have such a problem! |
@alanfelive see my previous comment please |
Same here, where can I find the chat? |
Click the chat icon on the top right of the website which leads to https://svelte.dev/chat |
Please also include whether you're using Rollup or Webpack |
Yes, that looks fine:
I'm using Rollup. |
Actually, it looks like that file isn't being used directly for
|
@Shackless is hitting this line: 😄
|
The double backslashes were printed because we logged to console using
|
I sent a fix for this issue: #1338 Thanks to @Shackless for remote debugging this with me! |
Describe the bug
After a fresh install, running the server outputs this in the browser:
Logs
List of commands to reproduce
I tested this on Node 12, installed Node 14 to check if I was not outdated just in case, and it doesn't work anymore.
Stacktraces
Stack trace in the browser
Information about your Sapper Installation:
Severity
High (project unusable)
Additionnal context
The home page is actually displayed in the first place, but the error replaces the entire page after a blink of an eye, so this definitely comes from the client.
As you can see on the following screenshot (click to unroll), adding a debugging breakpoint in the devtools shows that the project's web page is well rendered in the first place, but somehow there are issues with the
component
variable, for which the CSS is not rendered.I'm not sure but maybe the frontend compiler isn't capable of rendering the CSS. I don't know if it's a Sapper or Svelte issue, though.
Breakpoint screenshot
The text was updated successfully, but these errors were encountered: