You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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)
The text was updated successfully, but these errors were encountered:
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
🐛 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](https://private-user-images.githubusercontent.com/452809/408553839-10c0bf80-d18c-47c2-8f1b-67cfef959039.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Njg5NzIsIm5iZiI6MTczOTY2ODY3MiwicGF0aCI6Ii80NTI4MDkvNDA4NTUzODM5LTEwYzBiZjgwLWQxOGMtNDdjMi04ZjFiLTY3Y2ZlZjk1OTAzOS5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMTE3NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYjQxNjM4NjA4YTIzYTJjMjBmNGE5MDc4MDc2NTMxYjFkNzYxZWZlZjQwZGU4MjBiZjczMDc0MjQ4ZmFjYzgzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Bk6QCrZz_bUqp7KWBRe-WklizvUIa5Rej1pxyBBbe2o)
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: