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: Can't resolve css file #5

Closed
philimonov-alexander opened this issue May 14, 2018 · 2 comments
Closed

Error: Can't resolve css file #5

philimonov-alexander opened this issue May 14, 2018 · 2 comments

Comments

@philimonov-alexander
Copy link

philimonov-alexander commented May 14, 2018

With emitCss: true options emited css files are not founded. It seems that the problem is related to sveltejs/svelte-loader#45 "the CSS is written to a virtual file system"
NodeJs version: 8.11
OS: Windows 10

ERROR in ./src/App.html
Module not found: Error: Can't resolve 'C:sveltesrcApp.svelte.css' in 'C:\svelte\src'
 @ ./src/App.html 71:0-38
 @ ./src/main.js
 @ multi ./src/main.js
@thewindsword
Copy link

thewindsword commented May 22, 2018

It look like a path problem on Windows 10,you can see this pr.
sveltejs/svelte-loader#64

if you want to build immediately,open node_modules\svelte-loader\index.js
change lines 121: cssFilepath to posixify(cssFilepath)

@philimonov-alexander
Copy link
Author

philimonov-alexander commented Jun 6, 2018

Thanks, sveltejs/svelte-loader#64 fix it

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