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

Build errors on Vercel #93

Closed
JayBox325 opened this issue May 3, 2023 · 8 comments
Closed

Build errors on Vercel #93

JayBox325 opened this issue May 3, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@JayBox325
Copy link

Please see this error. It happens for all icons, but the build process works perfectly on my local environment:

error   [astro-icon] Unable to load icon "basil:linkedin-solid"!
--
19:44:36.540 | Error: Unknown builtin plugin "cleanupIDs" specified.
19:44:36.541 | Error: [astro-icon] Unable to load icon "basil:linkedin-solid"!
19:44:36.541 | Error: Unknown builtin plugin "cleanupIDs" specified.
19:44:36.541 | at file:///vercel/path0/astro/dist/chunks/pages/all.831608ca.mjs:2323:13
19:44:36.541 | at async AstroComponentInstance.render (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1586:7)
19:44:36.541 | at async renderChild (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1643:5)
19:44:36.542 | at async [Symbol.asyncIterator] (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1310:7)
19:44:36.542 | at async renderAstroTemplateResult (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1318:20)
19:44:36.542 | at async renderChild (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1641:5)
19:44:36.542 | at async [Symbol.asyncIterator] (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1310:7)
19:44:36.542 | at async renderChild (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1641:5)
19:44:36.542 | at async renderChild (file:///vercel/path0/astro/dist/chunks/astro.4d0feab3.mjs:1647:5)
19:44:36.585 | Error: Command "npm run build" exited with 1
@tdmichaelis
Copy link

I have this same problem while I am inside a vercel turborepo... I can create a standalone project and it works just fine but when I add that project to a vercel turborepo I get those errors. So maybe it is not specifically an astro-icon problem. I am still digging into the issue.

@JayBox325
Copy link
Author

I have tried this today with a local SVG and it's the same Unknown builtin plugin "cleanupIDs" specified. error.

@jud3v2
Copy link

jud3v2 commented May 6, 2023

same error on cloudflare

@JayBox325
Copy link
Author

I have found a workaround for now, that involves adding "svgo": "2.8.0" to your devDependencies.

@ashishlotake
Copy link

Thanks @JayBox325 adding "svgo": "2.8.0" to devDependencies works.

@stramel
Copy link
Collaborator

stramel commented May 13, 2023

This looks like it is due to svgo version conflict. This should be addressed as part of the v1 rework.

@YannisHaismann
Copy link

Svgo 3.0.+ need to be downgrade to 2.8.0 and set in devDependencies in package.json :

  1. npm install --save-dev svgo@2.8.0
  2. Delete package-lock.json & node_modules
  3. npm i
  4. npm run build

@stramel stramel modified the milestone: v1 May 25, 2023
@stramel
Copy link
Collaborator

stramel commented May 25, 2023

This a duplicate of #76

@stramel stramel closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2023
allison-truhlar added a commit to JaneliaSciComp/ossi-website that referenced this issue Dec 21, 2023
Changed the svgo dev dependency to try to address astro-icon "icon can't be found" messages - didn't work, but left it for building. natemoo-re/astro-icon#93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants