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

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

Open
banuharshavardhan opened this issue Oct 25, 2020 · 5 comments

Comments

@banuharshavardhan
Copy link

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 #14 (comment)

@banuharshavardhan banuharshavardhan changed the title Unable to resolve module ../highcharts-files/highcharts.hcscript from node_modules/@highcharts/highcharts-react-native/src/HighchartsModules.js: Unable to resolve module ../highcharts-files/highcharts.hcscript from node_modules/@highcharts/highcharts-react-native/src/HighchartsModules.js: None of these files exist --- Oct 25, 2020
@sebastianbochan
Copy link
Contributor

sebastianbochan commented Oct 26, 2020

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

@banuharshavardhan
Copy link
Author

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

@Denyllon
Copy link
Contributor

Denyllon commented Oct 27, 2020

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

@hardiksonagrav
Copy link

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

@abhiburk
Copy link

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

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

5 participants