svgr icon indicating copy to clipboard operation
svgr copied to clipboard

Works fine in previous version, bug got this error in latest version

Open Tonysmark opened this issue 2 years ago • 2 comments

🐛 Bug Report

image

To Reproduce

  1. copy a svg file to the assets folder
  2. run npx @svgr/cli --config-file .\.svgrrc.js -- assets
  3. 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

Tonysmark avatar Aug 24 '22 03:08 Tonysmark

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

Tonysmark avatar Aug 24 '22 03:08 Tonysmark

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.

stale[bot] avatar Nov 13 '22 00:11 stale[bot]