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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[X] Documentation issue or request
[X] Support request
[ ] Other... Please describe:
Current behavior
Running through the installation and setup instructions in the Readme and keep running into an error when running the npm run generate-icons script. Here is the error:
TypeError: (0 , svgo_1.optimize) is not a function
Expected behavior
Expected this to work and actually generate the svg ts files.
Minimal reproduction of the problem with instructions
Created a fresh vanilla Angular application and then ran the ng add @ngneat/svg-icon. New scripts were added in package.json. Double checked against the documentation to make sure they were correct. Ran npm run generate-icons and get the error.
What is the motivation / use case for changing the behavior?
Environment
Angular version: X.Y.Z
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: XX
- Platform:
Others:
The text was updated successfully, but these errors were encountered:
@christopher-harris I was also just having this issue. try installing the latest svg-generator, I installed it both globally and normally not sure which one did it I assume the global install, I'd say try normal install see if that fixes & if not global should do it. @NetanelBasal can confirm possibly?
npm i @ngneat/svg-generator@latest
and/or npm i -G @ngneat/svg-generator@latest
I think this may be missing from the ng add script or maybe just should be added to the readme
I'm submitting a...
Current behavior
Running through the installation and setup instructions in the Readme and keep running into an error when running the
npm run generate-icons
script. Here is the error:/node_modules/@ngneat/svg-generator/tree.js:49
svgContent: (0, svgo_1.optimize)(svgContent, { plugins, path: svgPath }).data,
^
TypeError: (0 , svgo_1.optimize) is not a function
Expected behavior
Expected this to work and actually generate the svg ts files.
Minimal reproduction of the problem with instructions
Created a fresh vanilla Angular application and then ran the
ng add @ngneat/svg-icon
. New scripts were added inpackage.json
. Double checked against the documentation to make sure they were correct. Rannpm run generate-icons
and get the error.What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: