last day (14 days later) » 

10:10 AM
0
Q: Unable to configure webpack.config file

Jaskaran Singh PuriWhenever I run webpack-dev-server it throws this error: ....webpack/hot/only-dev-server ./src Module not found: Error: Can't resolve './src' in 'C:\.... Here's the webpack.config.js file var webpack = require('webpack'); var path = require('path'); module.exports = { devtool: "inline-sou...

 
is there an index.* in your src folder? Does the src folder exist? Try making the last entry point a file instead of a folder e.g. ./src to ./src/index.js
 
now it says cant resolve react-hot, updated my code!
 
did you npm install --save-dev react-hot-loader?
 
now i did, update code again! errors keep on bundling up! Now throws: babel-core\index.js in not a loader must have normal or pitch function
 
update your question with the contents of your package.json. Did you npm install --save-dev babel-core babel-loader babel-preset-es2015?
 
10:10 AM
@RicoKahler updated!
I'm here
how do I resolve the errors?
 
what's the entry file in your app?
src/app.js?
e.g.
 
src/index.js
 
updated with an answer.
good luck man
 
10:30 AM
npm ERR! react-todo@1.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-todo@1.0.0 start script 'node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-todo package,
throws this error at npm start
 
download this and save it to the project root
also make sure you have the lastest node installed
 

last day (14 days later) »