-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Issue on React App deployment #1174
Comments
Having the same issue. Looks like v1.3.1 is breaking builds. |
Temp fix: Just rollback to "svgo": "1.3.0" (add to package.json file) |
Same -- here is the dependency graph with create-react-app
It seems like the break is from 1.3.0 --> 1.3.1, but until this is fixed either on svgo's side or with a Webpack dependency update, the easiest fix is to add a hard requirement to package.json
then |
Issue's stemming from Line 41 in 58232a3
Adding |
This fix does resolve my issue but I am using this as a build-in Create React App feature. As soon as i yarn install, this issue will come back. It's a temporary fix. |
you need to pin a specific version ... try
or just manually edit your yarn.lock or package.json file |
Can anyone confirm that this fix works? Tried @BrianHVB 's solution
But still getting same error. Edit: See comment below for solution if using yarn. It works! |
@johndevedu I'm still getting the issue -- even with pegging the version to 1.3.0. Looking in node_modules/svgo.js where multipass is referenced, I don't see how this is still generating the error. |
Same problem while using gulp-svgmin |
Yeah @dshanley looking at the commit for 1.3.0, all that's changed is the README.md and other package dependencies. Thanks for confirming. |
But with 1.3.0 everything is fine |
For people using yarn add this to your package.json |
This resolved my issue. Using CRA. Thanks |
Had to do this with eslint not too long ago. The solution above works thanks! |
react-svg-loader package is also affected, temporary adding "svgo": "1.30" to the package.json works fine |
Also seeing this over at https://github.com/gatsbyjs/gatsby |
Not using yarn, but worked fine with npm |
Seeing this error in Vue / Nuxt.js deployments as well due to CSSNano package using SVGO |
To get nuxt builds to work I used the "resolutions" fix from above. However, instead of using a global version of nuxt, I had to add nuxt as a dependency and run it via yarn so that it too would follow the resolutions and use the older version of svgo
|
I've submitted a PR at #1176 which resolves this issue. |
Seeing this at NextJS too.
This solved the issue though. |
remove |
Add this line in |
I am using gatsby and met this problem. |
Now not only this error happens during React deployment but also happens during Vue deployment. Same error message. This is how I solved this issue.
Hope this will help you guys who facing this issue as well. 😁 |
|
See svg/svgo#1174 Closes #233
Error: postcss-svgo: TypeError: Cannot set property 'multipassCount' of undefined eg: svg#1174
Failed to compile. postcss-svgo: TypeError: Cannot set property 'multipassCount' of undefined See svg/svgo#1174
* Pin svgo version at 1.3.0 until fix is issued: svg/svgo#1174
Oops! What's a nightmare you did guys 😭 |
For Nuxt 2: Now getting: |
@SecondeJK you don't have to revert svgo to 1.3.0 anymore - your error is probably unrelated |
@jantimon thanks - realised it's because I last pulled node modules when it was still a problem. Deleted lock, reinstalled, Nuxt happy with building. |
Error: postcss-svgo: TypeError: Cannot set property 'multipassCount' of undefined
The text was updated successfully, but these errors were encountered: