Unable to resolve module `../highcharts-files/highcharts.hcscript` from `node_modules/@highcharts/highcharts-react-native/src/HighchartsModules.js`: None of these files exist ---
banuharshavardhan opened this issue · 5 comments
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 #14 (comment)
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 , I have added .hcscript
already, please review this
@banuharshavardhan Actually it does not look like a correct configuration.
The config file should only contain the code starting from the line 19th.
Even after updating my metro config file get some other error.
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication).