Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Uncaught TypeError: instance.render is not a function renderToJson.js:24 #24

Open
jdobrowner opened this issue Aug 29, 2017 · 4 comments

Comments

@jdobrowner
Copy link

Uncaught TypeError: instance.render is not a function renderToJson.js:24

I followed the docs but get this error. I even made the simplest case but still am getting it. Any ideas?

{ this.state.waveState ? : }

width, height, and this.state.waveState are all defined

@daveranan
Copy link

+1

@mqschwanda
Copy link

mqschwanda commented Oct 4, 2017

@jdobrowner @daveranan
The issue has something to do with the react icons package from what I can tell. Anytime I use custom svg's, or components from another package I don't run into this error.

@jcmnunes
Copy link

jcmnunes commented Nov 1, 2017

In my case, this error happened because I was using icons defined as functional react components. Converting the icons to classes fixed the error.

EDIT: react-svg-morph-2 works with icons defined as functional react components

@joebentaylor1995
Copy link

No such thing @jcmnunes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants