svg-generator doesn't work #108
Replies: 4 comments
-
|
What is your svgo version? |
Beta Was this translation helpful? Give feedback.
-
|
I was usign 2.8.0, but also tried 3.0.0 and 1.3.2 - same result. |
Beta Was this translation helpful? Give feedback.
-
|
I can't reproduce it. See if it happens on a new project, please. |
Beta Was this translation helpful? Give feedback.
-
|
The solution was to upgrade @ngneat/svg-generator from 2.1.0 to 4.1.0 (same as @ngneat/svg-icon). I pasted here my dependencies and focus on those, but completely forget that I have svg-generator in dev-deps... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm submitting a...
Current behavior
While genereting
svg-generatorI get this:TypeError: (0 , svgo_1.optimize) is not a function at createTree (...\node_modules\@ngneat\svg-generator\tree.js:49:53) at createTree (...\node_modules\@ngneat\svg-generator\tree.js:25:30) at generateSVGIcons (...\node_modules\@ngneat\svg-generator\generator.js:19:47) at Object.<anonymous> (...\node_modules\@ngneat\svg-generator\index.js:9:34) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47and ofc ts files are not generated.
Expected behavior
Ts files should be generated
Environment
"@angular/animations": "~13.2.5",
"@angular/cdk": "^13.2.5",
"@angular/common": "~13.2.5",
"@angular/compiler": "~13.2.5",
"@angular/core": "~13.2.5",
"@angular/forms": "~13.2.5",
"@angular/material": "^13.2.5",
"@angular/platform-browser": "~13.2.5",
"@angular/platform-browser-dynamic": "~13.2.5",
"@angular/router": "~13.2.5",
"@ngneat/svg-icon": "^4.1.0",
It also happened on old svg-icon version when angular 13.2.5 was newest so changing version didn't change anything
For Tooling issues:
Others:
npm list @ngneat/svg-icon doesn't provide any information.
When i log svgo_1.optimize I get undefined
Beta Was this translation helpful? Give feedback.
All reactions