Skip to content
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

Closed
basher opened this issue Jan 31, 2025 · 1 comment

Comments

@basher
Copy link

basher commented Jan 31, 2025

🐛 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:
Image

Local build is OK.

🎛 Configuration (.babelrc, package.json, cli command)

"build": "npm install && npm run build:parcel",
"build:parcel": "parcel build index.html --dist-dir public/build",
"build-storybook": "storybook build",
"publish-storybook": "npm run build && npm run build-storybook",

🤔 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

Software Version(s)
Parcel 2.13.2
Node 20.11.0
npm/Yarn npm 10.2.4
Operating System Windows (local)
@basher basher changed the title Github Pages Parcel build fails - @parcel/optimizer-svgo - "Autoinstall is disabled, please install this package manually and restart Parcel." Parcel build fails - @parcel/optimizer-svgo - "Autoinstall is disabled, please install this package manually and restart Parcel." Jan 31, 2025
@basher
Copy link
Author

basher commented Feb 3, 2025

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

@basher basher closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant