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
Using an unnamed pipeline. But then it's not possible anymore to have SVGs that aren't react components.
🔦 Context
I before I used an unnamed pipeline to transform all svgs to react components.
But now I have a need to transform only some of them (due to another bug which might be related to how parcel transformes SVGs).
💻 Code Sample
See above
🌍 Your Environment
Software
Version(s)
Parcel
2.12.0
Node
20
npm/Yarn
npm 10
Operating System
manjaro linux
The text was updated successfully, but these errors were encountered:
🐛 bug report
The docs provide an example of using SVG with React here https://parceljs.org/languages/svg/#importing-as-a-react-component.
However, this example does not work and errors. (I couldn't get named pipelines to work in general)
🎛 Configuration (.babelrc, package.json, cli command)
Basically it the exact example given in the docs https://parceljs.org/languages/svg/#importing-as-a-react-component
Then running
parcel build example.jsx
produces the error.🤔 Expected Behavior
The Svg should be turned into a React component as shown in the docs. https://parceljs.org/languages/svg/#importing-as-a-react-component
😯 Current Behavior
When runnning parcel build this error happens.
💁 Possible Solution
Using an unnamed pipeline. But then it's not possible anymore to have SVGs that aren't react components.
🔦 Context
I before I used an unnamed pipeline to transform all svgs to react components.
But now I have a need to transform only some of them (due to another bug which might be related to how parcel transformes SVGs).
💻 Code Sample
See above
🌍 Your Environment
The text was updated successfully, but these errors were encountered: