We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Output of CLI results in SyntaxError due to some binary character being appended to the beginning of the file content (it cannot be removed)
Steps to reproduce the behavior:
npx @svgr/cli yourImage.svg > yourImage.tsx
yourImage.tsx
A clear and concise description of what you expected to happen. The resulting file compiles correctly.
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
## System: - OS: Windows 10 10.0.22631 - CPU: (16) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz - Memory: 34.48 GB / 63.95 GB ## Binaries: - Node: 18.18.0 - C:\Program Files\nodejs\node.EXE - Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD - npm: 9.7.1 - ~\AppData\Roaming\npm\npm.CMD
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug Report
Output of CLI results in SyntaxError due to some binary character being appended to the beginning of the file content (it cannot be removed)
To Reproduce
Steps to reproduce the behavior:
npx @svgr/cli yourImage.svg > yourImage.tsx
yourImage.tsx
does not compile with following SyntaxError:Expected behavior
A clear and concise description of what you expected to happen.
The resulting file compiles correctly.
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: