Skip to content
New issue

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

Option ext ignored #431

Closed
JiDai opened this issue Apr 15, 2020 · 2 comments · May be fixed by NOUIY/layer0-docs#478
Closed

Option ext ignored #431

JiDai opened this issue Apr 15, 2020 · 2 comments · May be fixed by NOUIY/layer0-docs#478

Comments

@JiDai
Copy link

JiDai commented Apr 15, 2020

🐛 Bug Report

Unable to generate file with custom extension with the config file option. It is working with CLI option.

To Reproduce

Create a .svgrrc.js file :

module.exports = {
    ext: 'tsx',
}

Run npx @svgr/cli -d icons icons

Expected behavior

Output files with tsx extension

Envinfo

npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown

  System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
    Memory: 47.21 MB / 16.00 GB
    Shell: 3.1.0 - /Users/jordid/homebrew/bin/fish
  Binaries:
    Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
    Yarn: 1.22.4 - ~/homebrew/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v12.16.1/bin/npm

(Not sure the envinfo output is as expected )

@open-collective-bot
Copy link

Hey @JiDai 👋,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use SVGR at work, you can also ask your company to sponsor us ❤️.

@gregberge
Copy link
Owner

Hello @JiDai, extension can only be defined using using CLI parameter:

npx @svgr/cli -d icons --ext tsx icons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants