aboeglin / react-router-v4-transition

React Router V4 Transition
MIT License
39 stars 6 forks source link

Error when trying to run script start:server #15

Open eko24ive opened 7 years ago

eko24ive commented 7 years ago

Pulled repo, installed deps and stumbled into this error:

$ npm run start:server

> react-router-v4-transition@0.1.8 start:server D:\workspace\react-router-v4-transition
> webpack-dev-server --content-base ./example --port 8080 --history-api-fallback index.html

 http://localhost:8080/webpack-dev-server/
webpack result is served from /
content is served from D:\workspace\react-router-v4-transition\example
404s will fallback to /index.html
Hash: 33d9e3ec1f6f527f350b
Version: webpack 1.13.3
Time: 51ms

ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' D:\workspace\react-router-v4-transition\src\index.js in D:\workspace\react-router-v4-transition

ERROR in Entry module not found: Error: Cannot resolve module 'index.html' in D:\workspace\react-router-v4-transition
webpack: bundle is now VALID.
eko24ive commented 7 years ago

Here is screenshot from page server by wepack: image

aboeglin commented 6 years ago

@eko24ive I'll look into that, did you build the example first ? And does it work ? I also have errors but they are not blocking. Must be a webpack config issue. I'll upgrade it to webpack 3 in the next release anyways. In the meantime it should still work.

eko24ive commented 6 years ago

Thank you for the reply. It's been a while, so I can't remember my routine for sure. I'd say that I didn't build it first, so I probably try to do that. And I'll wait for your upgrade to webpack v3 as well.