-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Parcel build fails - @parcel/optimizer-svgo - "Autoinstall is disabled, please install this package manually and restart Parcel." #10080
Comments
I rolled back Parcel to v2.12.0 which fixed my issue, as adding SVGO as a DevDependency did NOT work for me. Ref: related PR see #9969 |
I need to re-open this issue. The suggested "fix" to install SVGO as a devDependency does not work for the project I'm working on- #9969 (comment) We're trying to fix a separate issue with not being able to set JS breakpoints with map files (generated by Parcel build), so we needed to "bump" Parcel to see if the problem was resolved... unfortunately, it broke our build! |
Why doesn't installing svgo work for you? |
@devongovett I have no idea! I've now re-instated [email protected] and SVGO in this commit: Github Pages build fails: Also, please note that my LOCAL BUILD ALSO FAILS when running this build command - https://github.com/theThought/Transform-v2/blob/master/UI/package.json#L26 - contrary to what I said above in original bug report. Now it's the See attached screenshot: We need to bump Parcel & TypeScript to try and resolve an issue we're having with debugging production JavaScript using debugger in devtools, with the minified JS and map files. |
Did you follow the recommendation in the error message to run your package manager (eg npm)? |
Yes... assuming the error message means running an install of Node dependencies. The build process currently looks like this:
And project dependencies (simplified):
I still get the same build error, even if I delete node_modules folder first. We'll have to revert back to |
🐛 bug report
I'm trying to publish a Storybook/HTML component library that uses Parcel to bundle CSS/JS/image assets.
Github Pages build fails - see error:
https://github.com/theThought/Transform-v2/actions/runs/13072020838/job/36475528341#step:4:56
Error screenshot:

Local build is OK.
🎛 Configuration (.babelrc, package.json, cli command)
babelrc
.npm run publish-storybook
which does a Parcel build = https://github.com/theThought/Transform-v2/blob/master/UI/package.json🤔 Expected Behavior
Parcel SVGO optimiser should be automatically installed as a dependency.
😯 Current Behavior
SVGO not installed in Github Pages Build process, but it does install if I run the
npm run publish-storybook
command locally.I also tried explicitly installing SVGO as a DevDependency, but got the same error.
🔦 Context
I'm unable to publish Storybook because of this issue.
💻 Code Sample
See links provided above.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: