-
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 build failing with Unexpected token error but no other details or stacktrace #32705
Comments
Duplicate of #32704 |
Similar issue on my project. This is a hard failure in the production build. Yet, the development build doesn't seem to be affected. A bit more details
Gatsby Info
Flags
p.s. same error when no flags are used. |
same issue here, it works fine yesterday, and I don't make any changes on the code just have this error, without any details information, ERROR #98123 WEBPACK
Generating JavaScript bundles failed System: |
Hi! I've cloned the starter https://github.com/chhpt/gatsby-ts-starter, removed the Can you please provide a reproduction showing this issue, including the steps necessary? |
Hi I'm not sure what are the easiest way to create reproduction on this issue. But uninstalling and reinstalling gatsby-cli globally solved the error and seems to be back to normal for now (tested this on two sites). |
@LekoArts I have a private repository in Github, but I can invite you by the live share in VS Code if need. let me know... |
It appears to be the case. I'm not facing this error anymore. And yes, there are also a few packages updated on my side, including |
Can you run As others pointed out it might have been caused by babel/babel#13501 which was just reverted in babel/babel#13637 and released in babel/babel@546e3d9#diff-01ecfc1ff84980d33a414eec403fcb86a6c9f61979ac6163753744719b8110ed (7.15.1) |
I'm using npm, so I ran |
Thanks, I ran the cmd, the result is yarn why v1.22.5
|
Then you shouldn't have the issue anymore. I've used yarn resolutions to force the version to 7.15.0 and I see the error. After forcing to 7.15.1 the error goes away 👍 So if you see the error please update your packages and check that you have |
Sorry, I still have this issue @LekoArts |
@LekoArts I tried the yarn clean first, and then it works fine What's the magic.. |
Removing caches or |
I tried to force the github actions to use "yarn build", not the "npm run build", and it works... |
Had this same issue. Made sure I had On gatsby cloud had to do a full clear cache and restart, but now all working. |
Preliminary Checks
Description
It works well in development mode, but build fail and there is no other error details.
Reproduction Link
https://github.com/chhpt/gatsby-ts-starter
Steps to Reproduce
yarn
Expected Result
Build success
Actual Result
Build fail
Environment
Config Flags
No
The text was updated successfully, but these errors were encountered: