-
Notifications
You must be signed in to change notification settings - Fork 8
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
ERROR in multi app -- Cannot resolve module 'webpack/hot/dev-server' #12
Comments
try installing webpack globally npm install -g webpack and perhaps
but normaly
is enough Sorry for inconvenience |
Thank you @darul75 for your prompt reply. I had jumped through that hoop without success.
Version: webpack 1.11.0
Child
|
first thank you for providing such details. I am on windows too right now, I have erased my node_modules folder, installed npm packages again, and is has worked. I can not figure out what is happening in packages you have described because there are defined in package.json dependencies. I mean for html-webpack-plugin https://github.com/darul75/web-react/blob/master/package.json Then I know there can be some issues with babel versions, but I have no solution yet...rrr |
I ripped out my global node_modules and reinstalled/repaired node. In the process of reinstalling web-react I re-encountered a problem installing Contextify. I don't recall how I finally resolved it. Did you do anything special to get Contextify installed on your Windows box? |
Ok I got it running!!!! For anyone tuned in, here's how "I" got contextify working. See my response to contextify/issues/159 |
great job, hope you can enjoy to play with this kit now, sorry but I could not help you, windows is specific, and yes I remember I had to install many things here too to make node working well. |
On windows machines, webpack-dev-server hast to be installed not only globally like on linux machines, but also locally.
|
Hi, thanks for reporting it, maybe I will add it to local dev dependencies in package.json |
Just following up, @moneyonrails I just had to do the same thing of installing webpack-dev-server locally on a mac |
I face this issue this days. I had webpack installed globally: I solved by linking to the global installation: I hope this might help others. |
Was having issues on a Mac - same message about 'webpack/hot/dev-server' not found. It went away after adding this to my webpack config:
|
hi thx @greyvugrin @mantielero , I will update it as soon as possible. |
I had a similar issue and it was because I didn't have
|
@mantielero great catch! This worked for me. I'm on a mac as well, just for reference. |
@maticicero yes that did the trick. |
I am new to react and had the same issue on Mac, I installed webpack-dev-server locally..
this worked for me..:) |
There was a legend about a man, who understands webpack. He could tear up a bear with a singe hand, he could stop a train with his own body, and he understood a diagram in webpack hot-reload documentation https://webpack.github.io/docs/hot-module-replacement-with-webpack.html. His name was @moneyonrails. After several days, my journey came to and end. I installed the webpack-dev-server locally as he suggested, more or less I did it as a joke becuase I knew it wouldn't change a thing, and then run server as ./node_modules/webpack-dev-server/bin/webpack-dev-server.js, suddenly, HRM started to work. |
Seriously, it's magic @Sedaj. I have no idea how @moneyonrails figured it out |
For me replacing "loader: 'babel'" with "loader: 'babel-loader'" Worked |
I was getting this error in a different context, using webpack-hot-reload in the Meteor build process. @binodonline 's solution worked for me! |
$ yarn run start ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./src/code.ts |
In my case this issue was due of exclamation mark on the end of project folder name. |
the above methods that i try fail,finally figure out my problem method is use specific version webpack-dev-sever, like 3.1.0 and on on |
This is the one, only now it's simply: modules: [...] |
Trying to get your package running on Windows. When I run
npm run dev
I get the following error:Any suggestions would be appreciated. Thank You. :)
The text was updated successfully, but these errors were encountered: