highcharts-react-native icon indicating copy to clipboard operation
highcharts-react-native copied to clipboard

Unable to resolve module `../highcharts-files/highcharts.hcscript` from `node_modules/@highcharts/highcharts-react-native/src/HighchartsModules.js`: None of these files exist ---

Open banuharshavardhan opened this issue 4 years ago • 5 comments

Simulator Screen Shot - iPhone 11 Pro Max - 2020-10-25 at 12 42 52

I got this error, I think there is nothing wrong in file path. I'm new to react-native is there anything do I need to take care? Help me resolve this.

Originally posted by @banuharshavardhan in https://github.com/highcharts/highcharts-react-native/issues/14#issuecomment-716104739

banuharshavardhan avatar Oct 25 '20 07:10 banuharshavardhan

It is required to add the .hcscript into the asset extensions section of metro.config.js file, or create that file within your project.

You can find more information about setup in our docs here: https://github.com/highcharts/highcharts-react-native#installing

sebastianbochan avatar Oct 26 '20 12:10 sebastianbochan

@sebastianbochan , I have added .hcscript already, please review this Screenshot 2020-10-27 at 10 43 45 AM

banuharshavardhan avatar Oct 27 '20 05:10 banuharshavardhan

@banuharshavardhan Actually it does not look like a correct configuration. The config file should only contain the code starting from the line 19th.

Denyllon avatar Oct 27 '20 16:10 Denyllon

Please add metro.config.js like this Screenshot from 2020-12-19 10-24-27

hardiksonagrav avatar Dec 19 '20 04:12 hardiksonagrav

Even after updating my metro config file get some other error. Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication).

abhiburk avatar Jan 21 '22 08:01 abhiburk