question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bcomnescommented, Apr 20, 2018

A nanocomponent consisting of a text node? Eh. Wrap it it in a span

0reactions
bcomnescommented, Apr 20, 2018

No we can land this sooner than later

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found