You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ExampleIcon.stories.tsx file should be generated successfully using componentName as the file location (i.e. import View from './ExampleIcon';.
After successfully creating an icon component from the first half of the script above, SVGR fails to create the stories.tsx file due to the following errors:
Failed to handle file: src/svgs/example-icon.svg
Error: /Users/.../icons/src/svgs/example-icon.svg: Unknown substitution "$$BABEL_TPL$1" given ...
🐛 Bug Report
When creating a custom template with SVGR, I'm not able to use
componentName
as a location in an import declaration.To Reproduce
Template code:
Script:
Expected behavior
The
ExampleIcon.stories.tsx
file should be generated successfully usingcomponentName
as the file location (i.e.import View from './ExampleIcon';
.After successfully creating an icon component from the first half of the script above, SVGR fails to create the
stories.tsx
file due to the following errors:What am I missing?
The text was updated successfully, but these errors were encountered: