-
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
[gatsby-plugin-netlify-cms]: Breaks Gatsby build
#4335
Comments
Started digging into this, it seems the sass plugin doesn't use it's own instance of Fixing this in the sass plugin stops the error, but causes #3753 to resurface. Need to investigate further. |
Fix in #4379. Started printing Given that v2 is on the horizon, this may not be worth digging to far into. If each plugin is handling style writes correctly, |
Hi, I have the same problem as @TomPichaud. In gatsby develop, I have absolutely no issues with gatsby-plugin-netlify-cms and netlify-cms-app (followed the Gatsby docs!), but it breaks on build.
There are all sorts of issues with sourcemaps (and hmr). I have had to use 2 different workarounds. The one I have now is my second one. Previously, I had to make sure that sourcemaps was working in development. Then that broke, and then I had to turn it off in production. And now that no long er works when I add netlify-cms-app and gatsby-plugin-netlify-cms to the mix. Will also try and remove gatsby-plugin-netlify-cms and see if the build runs, and if I can also login then. Will report back. |
Yup. When I comment out |
@interglobalmedia we fixed Tom's issue, can you open a separate one for this? Need steps to reproduce, etc. |
@erquhart I fixed my own issue. Sorry that I did not follow up here! I think I told you about resolving? Too long to explain here, but essentially it had to do with the new terser peerDep in Gatsby and that meant that I had to stay with gatsby v 2.10.0 in the project and use npm-force-resolutions to fix the issue. Here is the repo if you want to take a look at what I use: interglobalmedianetwork.com This is bigger gatsby issue that many of us in various ways due to using different plugins have been experiencing. In my case, the straw that broke the camel's back was the gatsby-plugin-netlify-cms. I have podcasted/written two posts about it if that would help follow along. Can find them here: https://www.interglobalmedianetwork.com/blog/gatsby-terser-sourcemaps/ and https://www.interglobalmedianetwork.com/blog/gatsby-terser-sourcemaps/. Hope this helps! Do you still want me to open separate issue even though it has been resolved? |
Ah, didn't realize this was posted before we last talked - no need to open another issue! Glad you got it sorted 👍 |
Me too! Thanks for everything @erquhart! |
From : #4031
Gatsby
build
, output an error when using [gatsby-plugin-netlify-cms] with CSS ModulesSimple test using starter with CSS Modules and [gatsby-plugin-netlify-cms], https://github.com/TomPichaud/test-cms-plugin
Gatsby
develop
works just fine.@erquhart @pogo19
The text was updated successfully, but these errors were encountered: