Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Issue after deploy on heroku #49

Open
viniciusolima opened this issue May 2, 2019 · 2 comments
Open

Issue after deploy on heroku #49

viniciusolima opened this issue May 2, 2019 · 2 comments

Comments

@viniciusolima
Copy link

viniciusolima commented May 2, 2019

Works fine on development, but after deployed on heroku, charts doesnt open. Im getting the error

c3.js:1046 Uncaught TypeError: n is not a function
    at new a (c3.js:1046)
    at new r (c3.js:1026)
    at Object.Y.generate (c3.js:1055)
    at t.value (react-c3js.js:69)
    at t.value (react-c3js.js:85)
    at t.value (react-c3js.js:44)
    at commitLifeCycles (react-dom.production.min.js:148)
    at t (react-dom.production.min.js:157)
    at b (react-dom.production.min.js:168)
    at v (react-dom.production.min.js:167)
@martinsnajdr
Copy link

Exactly same problem here! Any solutions?

@madwire
Copy link

madwire commented Jul 10, 2019

We've run into this issue, think its to do with the require in componentDidMount which worked fine in development but not in production because of our setup

https://github.com/bcbcarl/reactc3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/src/index.js#L48

componentDidMount() {
    c3 = require('c3');
    this.updateChart(this.props);
  }

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

No branches or pull requests

3 participants