-
Notifications
You must be signed in to change notification settings - Fork 80
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 "react-native-webview"... #48
Comments
Hi @axelav, |
yes, I have and receive a different error:
|
Unfortunatley I was not able to reproduce the problem. Could you describe step by step what you did and attach your OS details? |
sure, here is info on my OS & node installation:
and here are steps I followed to create my project: expo init highcharts-example --npm
cd highcharts-example
npm i @highcharts/highcharts-react-native
# copy basic usage example https://github.com/highcharts/highcharts-react-native#highcharts-chart
# from docs into Chart.js
npm start the |
The application still works for me. Probably it can be related with missing Also you can try to put files into assets https://github.com/highcharts/highcharts-react-native#files-are-not-loaded |
thanks for your reply @sebastianbochan. so you are able to get the example repo I created to work? I have tried it on at least three different machines and receive the same error on every one. I'm unclear which custom extension I would need to add for this library? it seems to only import I don't think the suggestion to put files into assets is relevant as those directories do not exist in an expo project. |
I spent some time playing around with different versions of Expo and this module. When I create an Expo app using v33 of the Expo SDK, everything works fine. Any version higher than that (v34-36) of Expo, does not work and produces the error mentioned above. From the Expo release notes:
If I From what I can tell, this module currently only works out of the box with Expo SDK v33 or lesser, though it will work with v34 with a bit of massaging. v35 and v36 do not appear to be compatible at this time. |
sorry for all the replies today, this was driving me crazy today and I needed to figure it out. turns out all that stuff about expo versions above was maybe not correct? I stumbled upon an issue in the react-native-webview/react-native-webview#875 (comment)
I tried doing that same thing, dropped a Anyway, I'm just putting this here in case someone else runs into this issue. Hopefully it can save them hours of stress and confusion. |
@axelav I really appreciate your help in the debugging. I will add the information to our FAQ section in readme on Monday. |
@sebastianbochan I'm happy to have figured out the issue and to help with the debugging. sounds good on adding to FAQ. Thanks for your hard work on this library, and I appreciate you taking the time to assist me here. |
Im just waiting for feedback from two other users who experienced the same issue. |
I am stuck in the same issue |
@AbdulWahab0707 see my comments above about editing the file |
I solved this issue by clearing the cache and re-install react-native-webview. The steps shown as below:
|
I was running into this error where is said "Unable to resolve module react-native-webview". So I followed this article: highcharts/highcharts-react-native#48 and typed "sudo npm i react-native-webview" and it seemed to work for me at least I also rearranged the LandingPage again after the merge
Thanks, this worked for me. |
I'm unable to get a basic chart working using a clean expo app.
Unable to resolve "react-native-webview" from "node_modules/@highcharts/highcharts-react-native/src/HighchartsReactNative.js" Failed building JavaScript bundle.
I know there have been recent changes with react-native-webview - perhaps they may be causing this issue.
I've created a sample repo for the issue: https://github.com/axelav/expo-highcharts
I'll paste in the
package.json
here as well.The text was updated successfully, but these errors were encountered: