DEV Community

Discussion on: How to create React Native App for Android, iOS and Web without Expo

Collapse
 
keiteldog profile image
Keitel Jovin

Then the configuration worked for you, now you need to go on the Browser console and see what's the javascript error. It could be syntax error, could be your own code importing "type" code (you should tell webpack to convert node module that uses them), it could be metro bundler not running, etc.
But you have to debug it in Browser console now.

Collapse
 
dgtman profile image
David Taylor

I forgot to say, nothing in the browser console. Not even a request to load the generated JS bundle. The index.html page is not loading.

However, if I change the URL to put a filename that does NOT exist in the app, I do get a "not found" error. So it's talking to the server, just not rendering anything.

Thread Thread
 
keiteldog profile image
Keitel Jovin

Oh ok, I see what you mean. Did you set the bable presets and plugins in config?

What does your web/webpack.config.js look like?

Thread Thread
 
keiteldog profile image
Keitel Jovin

Keep in mind that webpack serve is serving in memory in development. You won't even see the bundle file generated.

Thread Thread
 
shivams136 profile image
Shivam Sharma • Edited

@dgtman , Can you please check that you have included budle.web.js there or the entry point index.web.js is correct in webpack config and this file exists. Or you can share a github repo like the one I mentioned to generate the error at my end.