PokemonGo-Enhanced / Enhanced-Frontend

React frontend app for PokemonGo-Enhanced
20 stars 9 forks source link

Error: Cannot resolve module 'components/Move' #2

Closed askovi closed 8 years ago

askovi commented 8 years ago

Tried running it. I'm getting the following. Can't seem to be able to load the Move module.

`~/Enhanced-Frontend$ npm run dev

pokemongo-react@0.0.0 dev /home/ubuntu/Enhanced-Frontend better-npm-run dev

running better-npm-run in /home/ubuntu/Enhanced-Frontend Executing script: dev

to be executed: nodemon --exec babel-node bin/server [nodemon] 1.9.2 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting babel-node bin/server app:config Creating default configuration. +0ms app:config Looking for environment overrides for NODE_ENV "development". +2ms app:config Found overrides, applying to default configuration. +33ms app:server enabling proxy +202ms { host: 'http://localhost:8000', match: /^\/api\/.*/ } app:webpack:config Create configuration. +855ms app:webpack:config Enable plugins for live development (HMR, NoErrors). +1ms app:server:webpack-dev Enable webpack dev middleware. +277ms app:server:webpack-hmr Enable Webpack Hot Module Replacement (HMR). +32ms app:bin:server Server is now running at http://localhost:3000. +25ms webpack built 0c1fdb804a34d82902a6 in 4818ms Hash: 0c1fdb804a34d82902a6 Version: webpack 1.13.1 Time: 4818ms Asset Size Chunks Chunk Names app.0c1fdb804a34d82902a6.js 4.54 MB 0 app vendor.0c1fdb804a34d82902a6.js 2.51 MB 1 vendor

ERROR in ./src/components/Pokemon/PokemonWide.js Module not found: Error: Cannot resolve module 'components/Move' in /home/ubuntu/Enhanced-Frontend/src/components/Pokemon @ ./src/components/Pokemon/PokemonWide.js 30:12-38 Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 1.39 MB 0 webpack: bundle is now VALID. `

askovi commented 8 years ago

npm start seems to work. But there is nothing when i access the server? I get 'Not Found' from node when going to localhost:3000

askovi commented 8 years ago

I just realised this is not yet finished. my baaad. hahaha

rubenvereecken commented 8 years ago

It's not that actually, you just haven't started your backend server. If you go over to our backend repo, launch that with the default settings and then launch the front end it'll work just as expected. Theres a frontend dev server that proxies all api requests.

Oh also, it might be you have to check the other branch. On phone right now so can't bother checking.

On Mon, 25 Jul 2016 06:51 askovi, notifications@github.com wrote:

Closed #2 https://github.com/PokemonGo-Enhanced/Enhanced-Frontend/issues/2.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PokemonGo-Enhanced/Enhanced-Frontend/issues/2#event-733055286, or mute the thread https://github.com/notifications/unsubscribe-auth/AE-ZKcYuR03E_wBes8LMfMy6J3GpYXMiks5qZEDCgaJpZM4JTxjW .

askovi commented 8 years ago

@rubenvereecken well i just did that... they both run fine but i might not be doing something right. on port 3000 i still get Not Found (node server runs) on port 8000 i get O HAI and on port 8080 i get this error: PROXY_TO_SERVER_REQUEST_ERROR: Error: connect EMFILE [myIPhere]:8080 - Local (undefined:undefined)

itzyosh commented 8 years ago

did you ever get it to connect? im at this same point now

AVVS commented 8 years ago

yes, its the Index.js file in the Move should be lowercased and pushed to git

AVVS commented 8 years ago

fixed in ec0458298ec1782d4d32560ca503182b02a14c49