Can't handle svg
See original GitHub issueI have a simple component that should render an svg. But nanocomponent throws
Uncaught Error: nanocomponent: createElement should return a DOM node
at assert (index.js:21)
at Block.Nanocomponent._handleRender (index.js:93)
at Block.Nanocomponent.render (index.js:71)
at Object.values.map.block (blockPanel.js:33)
at Array.map (<anonymous>)
at BlockPanel.createElement (blockPanel.js:33)
at BlockPanel.Nanocomponent._handleRender (index.js:90)
at BlockPanel.Nanocomponent.render (index.js:71)
at Choo.mainView [as _handler] (index.js:21)
at Choo._prerender (index.js:244)
that’s because this line fails. I think this assertion should be fixed to include svg (and actually everything that can be handled by bel
itself)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Unable to import svg files in typescript - Stack Overflow
But in . js file I'm able to import it without any issues with exact the same import statement. I suppose it has...
Read more >5 Most Common Problems Faced by SVG Users - Vecta.io
5 Most Common Problems Faced by SVG Users · 1. Missing fonts · 2. Missing SVG namespaces · 3. SVG appears to be...
Read more >You Can't Handle All This Sparkle Svg Sarcastic Svg - Etsy
You Can't Handle All This Sparkle Svg, Sarcastic Svg, Funny Svg, Digital Downloads, Svg Files for Cricut, Cricut Svg, Svg Designs, Png File....
Read more >Importing svg not working properly - Ask the community
hello, i tried to import an svg by draging it to my draft but it instead it looks ... Doesn't matter what program...
Read more >Can't Import SVG image | OutSystems
It keeps telling me that the image is "unsupported image". I've created the image with Adobe Illustrator and save it as SVG file....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A nanocomponent consisting of a text node? Eh. Wrap it it in a span
No we can land this sooner than later