-
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
cli: yoga-layout-prebuilt error on gatsby build #24577
Comments
Having a similar error when running
I'm on gatsby version 2.22.9, and gatsby cli version 2.12.21 |
What are node version you are using? We also do need some kind of reproduction for it. |
Same issue here #24589 |
@pieh I'm on node Also if it helps: |
@pieh I just created a new gatsby project and updated to:
and My issue was with running |
I just downgrade and updated the Gatsby version to |
Can be related: #22558, #23214, #24411, #22991 (comment) |
I wonder if this is case of some error being eaten by This should force using "legacy" logger (which is not using |
I'm also running into this problem. Ran the
Gatsby version: |
You could probably work around this by installing
It's strange that gatsby is picking the |
@blainekasten Unfortunately not:
even after installing
Let me know if I can do anything in helping you to debug this ... |
Oh, I just realized you are using
|
Unfortunately this dosn't change anything. Stacktrace looks exactly the same (even with I played around with the versions a bit: i breaks for me at |
@gustavpursche yes that narrows it down. We can check what changed between those versions. Thank you! |
* gatsby is currently at 2.21.40 due to the following issue gatsbyjs/gatsby#24577
This is the publish commit for 2.21.40. The only commit between those two is d4ec5e5e081f46ae33578861bcfb29d9554e099a |
Looks like this is when @mxstbr added the |
@gustavpursche I'm curious, does |
@blainekasten The only regular npx command I'm (knowingly) using is I'm also using other globally installed node cli tools and they all work, so I guess it is not a permission issue. 🤷 (I'm on vacation this week but next week I'm happy to dive a bit deeper into the issue since I saw exciting new things at the gatsby horizon) |
@blainekasten Had a look today, but I couldn't find anything useful here. 😭 The only thin I discoverd, which is different from the issue description is, that I've also tried it with |
@alexandresgf @moreguppy @MrUltimate In case you are also still struggeling with this: I've created/ forked a docker project, which helps me now running gatsby with a recent version: https://github.com/gustavpursche/gatsby-docker |
Hi @pawelbrzezinski, not yet - but I do have a reproduction for this locally. Will update once I make some progress. |
A possible workaround if you're using
The underlying cause seems to be that both Gatsby and the CMS plugin have Looks like a PR to solve it was already merged, but not released yet. |
After doing a rollback of my v3 migration today because of this very ugly gatsby-plugin-netlify-cms package, i suddently getting this error too in my v2 distro. Dont know if this is related to my previous v3 migration but seems unlikely because i reverted and cleaned everything. I could fix it with what was proposed already:
But one needs the modulePath right? So this seems not a viable workaround. I must say that i am little bit disappointed that Netlify-CMS gives me such a hard time currently. Not getting v3 is one thing but now even my previous stable distro is kind of defunct. Update: @erezrokah mini-css fix did the trick too. Thats nice! |
@erezrokah see #29951 |
This worked for me minus the changes to the SASS config. I had to leave it as 'gatsby-plugin-sass'. Otherwise, it would throw an error when trying to compile my SASS files. |
@erezrokah Could you list out the steps needed to solve this issue? I tried adding the code you said to |
Hi @michaelcorley the This tool might work for |
I had to comment out the import and register entries in cms.js to get around the problem. Would love to see a fix for this (I use npm rather than yarn) |
"Looks like a PR to solve it was already merged, but not released yet." @erezrokah Any news on this? I thought for a second that there will be a gatsby-plugin-netlify-cms v4.11.0 which solved this issue by using a mini-css-extract-plugin version aligned to gatsby npm module. |
Hi @logemann, I think updating to the latest versions of Gatsby (v3) and the plugin (v5) should fix this. We are using both of them for So this is not fixed in We can consider back porting a fix (pending approval of the maintainers of this repo) if there's a good reason to do it. |
given the fact that not every project will be ported to v3, it would be a good idea to backport it. |
Good point. See PR #31093 |
Hi @logemann, can you try with |
This was fixed with #31093 |
@erezrokah removed "resolutions" workaround in packages.json, got the error, used 4.10.1 dependency --> worked! Thanks for your efforts !! #31093 is the man. |
As requested by @erezrokah ...I'm having issues with the build as outlined below:
My repo can be found here: https://github.com/jf-home/hello-i8n.
The only way that I have found to get around the error is to comment out lines 5 to 16 in Thanks in advance for any assistance provided. |
Hi @jf-home, for some reason you also have mismatching dependencies, see: I was able to fix this by running:
See PR jf-home/hello-i8n#1 |
Hi @erezrokah, Thanks for the prompt response - that's sorted it! I have learned something new in now to resolve conflicts too - so, again, thank you! Feel free to close this issue. |
Dang, I get this error but I'm using |
same error using |
I'm not using any of these plugins but still got this same error. Any idea how to fix it? |
I seem to be bumping into this as well.
I can't find anything that helps me get past this error in the build process. Any information that might get me a step along the way would be much appreciated. |
Description
After an update did using the command
npm update
and the Gatsby updated from 2.21.17 to 2.22.12 no command did usinggatsby-cli
works anymore.Steps to reproduce
npm update
; and,gatsby develop
orbuild
orserve
.Expected result
Expected to run the development server.
Actual result
Environment
The text was updated successfully, but these errors were encountered: