mhaagens / react-mobx-react-router4-boilerplate

React, React-Router 4, MobX and Webpack 2-boilerplate with async routes.
560 stars 137 forks source link

npm run build white screen fresh download #58

Open xPhantomNL opened 6 years ago

xPhantomNL commented 6 years ago

I've just downloaded this repository as a zip, ran npm install and npm start which works fine. When I visit 0.0.0.0:3000, which apparently is the default config, I see a site that is working perfectly fine.

However, when I run npm run build and open index.html in the dist folder, I'm presented with a white screen. In my console I see 2 similar errors; 'Failed to load resource: net::ERR_FILE_NOT_FOUND' Which is the same for vendor.e9ca13f16289d4c6444b.js and app.e9ca13f16289d4c6444b.js respectively.

npm run preview works fine, but I need these files on an apache server where I can't run that command.