-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] Uncaught Error: Cannot find module "../css/xxx.css" #1624
Comments
It looks like you have local plugins ( |
Thanks @alampros for your fast response. I'm afraid to tell you that didn't solved my problem. |
having the same issue, should I just manually install the plugin's dependencies? |
I just removed the |
The problem not seem to coming from the |
@rongierlach if by "manually install" you mean add the dependencies to your My hunch was that the problem @oltodo ran into here was caused by having local plugins (living in Hope this helps! |
My problem was that my entry point was not extension |
I'm having the same issue, and I've tried reinstalling packages via Any help would be greatly appreciated, thanks! |
Ok, I've isolated the problem to Having an |
I'm also having a similar issue. I removed @oltodo how did you end up resolving your issue? |
@misscs Yes, by entirely using styled-components. Now, my import { injectGlobal } from 'styled-components';
injectGlobal`
@font-face {
font-family: 'Operator Mono';
src: url('../fonts/Operator-Mono.ttf');
}
body {
margin: 0;
}
`; |
I can confirm that the problem is using an
@d4ncer I've tried with multiple files other than normalize - importing from The only workaround seems to be to copy all css into a single file. :( |
Thanks for sharing, @oltodo. That makes sense given @Undistraction's confirmation. |
If this is a limitation of the current setup and not something that can be fixed this definitely needs to be added to the docs. |
Given two sites, both with Ensuring that each |
Thanks @dlindahl, giving my import statements a |
Closing this issue as it's fairly old. If you have additional problems in this area, please open a new issue! |
Hi there. I have a problem with CSS importing on my production Gatsby blog.
After building and deploying (using Surge) I get the following error :
The
reset.css
file is imported in thetemplate/index.js
file. Everything works indevelop
mode. Thebuild
command don't fail.The weirdest thing is that I got this error few days ago and it disappeared few days after. This error surfaced again today.
I compared with the
gatsby/www
source code and I didn't see any big differences about it with my project.If someone can help me on this I will be very grateful.
Production : http://m6webtech.surge.sh/
Github project : https://github.com/oltodo/m6web.github.io/tree/v2
The text was updated successfully, but these errors were encountered: