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

TypeError: Cannot assign to read only property 'exports' of object '#<Object>' #59

Closed
siddharthdb opened this issue Oct 26, 2018 · 7 comments

Comments

@siddharthdb
Copy link

Hi team,

Getting error on line 63.

Module.
node_modules/highcharts-react-official/src/HighchartsReact.js:63
60 | return HighchartsReact;
61 | }(React.PureComponent);
62 |

63 | module.exports = HighchartsReact;
View compiled
Module../node_modules/highcharts-react-official/src/HighchartsReact.js

Please change the above highlighted line to

export default HighchartsReact;

@siddharthdb
Copy link
Author

Please merge the Pull Request.
4b12a64

@hazratgs
Copy link

update package npm! 1.5.1 error!

@KacperMadej
Copy link
Contributor

Node package on NPM repo looks like updated to 1.5.2
https://www.npmjs.com/package/highcharts-react-official

Maybe it was some upload / refresh delay. All is fine now @hazratgs ?

@hazratgs
Copy link

hazratgs commented Nov 1, 2018

Node package on NPM repo looks like updated to 1.5.2
https://www.npmjs.com/package/highcharts-react-official

Maybe it was some upload / refresh delay. All is fine now @hazratgs ?

Error left, please fix it.

@KacperMadej
Copy link
Contributor

@hazratgs
Please provide live demo and details about the problem. From what you have provided so far I'm not able to recreate the problem or resolve it.

@hazratgs
Copy link

hazratgs commented Nov 5, 2018

why not translate the code in ES5 right away and not for a demo? we still connect it to the project where the modules are not compiled

@ppotaczek
Copy link
Contributor

Hello hazratgs, In the new version of the wrapper - 2.0.0, the code is compiled to ES5.

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

4 participants