Skip to content

Parcel build fails - @parcel/optimizer-svgo - "Autoinstall is disabled, please install this package manually and restart Parcel." #10080

@basher

Description

@basher

🐛 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions