svgr
svgr copied to clipboard
Works fine in previous version, bug got this error in latest version
🐛 Bug Report
To Reproduce
- copy a svg file to the assets folder
- run
npx @svgr/cli --config-file .\.svgrrc.js -- assets
- the tsx file should be genderated
Expected behavior
I got an error says ” assets does not exist “ which is odd for me , cause It's never been show up before
Link to repl or repo (highly encouraged)
config works fine in previous version, and I'm not changing anything in the config file.
Run npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***
## System:
- OS: Windows 10 10.0.22622
- CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
- Memory: 21.00 GB / 39.68 GB
## Binaries:
- Node: 16.15.1 - C:\Env\nodejs\node.EXE
- Yarn: 3.2.1 - C:\Env\nodejs\yarn.CMD
- npm: 8.11.0 - C:\Env\nodejs\npm.CMD
I changed node version to 14.19.0 and runs npx @svgr/cli --config-file .\.svgrrc.js -- assets
again
It works just like I expect
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.