Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when rendering the chart #10

Open
inooid opened this issue Apr 19, 2015 · 6 comments
Open

Error when rendering the chart #10

inooid opened this issue Apr 19, 2015 · 6 comments

Comments

@inooid
Copy link

inooid commented Apr 19, 2015

I get an error when first rendering the chart:
ReactMount.js:730 - Uncaught TypeError: Cannot read property 'firstChild' of undefined

It passes the getInitialState and then goes to the first render, but it doesn't seem to work there.

React version: '0.13.2',
React-Chartist version: '0.5.0',
Node version: '0.10.33',
@fraserxu
Copy link
Owner

Hmm. This seems a problem when upgrad to React v0.13.0. Can you check which version of React-chartist is in your node_modules directory?

@inooid
Copy link
Author

inooid commented Apr 19, 2015

The React version of React-Chartist is "version": "0.13.1", and the React-Chartist version is 0.5.0.
The React version I use in my project is version: '0.13.2'

@jeffbski
Copy link

run npm ls react and see if there is multiple instances. This can happen if you install react-chartist first before installing react.

If there is multiple, then npm rm react-chartist, then assuming you have already installed react, npm install react-chartist to reinstall.

Check npm ls react again and see that there should only be one instance.

@artemkaint
Copy link

the same problem repeated with react 0.14.0-beta3

@fraserxu
Copy link
Owner

Ah, I had a quick look at react 0.14.0-beta3 today, there seems a lot of changes.

Quick thing I may need fix:

  1. React.findDOMNode => require('react-dom').findDOMENode()
  2. React.render => requrie('react-dom').render()

The update could actually make this module easier for server side rendering.

@SpainTrain
Copy link
Contributor

Ah, I had a quick look at react 0.14.0-beta3 today, there seems a lot of changes.

0.14 stable is out

See #24 (will update with react 0.14)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants