reactjs - Module build failed - React -


i'm following video tutorial on react , i'm stuck "module build failed error". screenshots provided below, invalid index.js having invalid property of 'name'.

please check them , me out, webpack showing error though in video tutorial had no errors!

//webpack.config.js//

module.exports = {   entry: './public/app.jsx',   output: {     path: __dirname,     filename: './public/bundle.js'   },   resolve: {  extensions: ['', '.js', '.jsx']  },   module: { loaders: [   {     loader: 'babel-loader',     query: {       presets: ['react', 'es2015']     },     test: /\.jsx?$/,     exclude: /(node_modules|bower_components)/       }     ]   } }; 

//package.json//

{  "name": "hello-react",  "version": "1.0.0",  "description": "simple app\u001b[d\u001b[d\u001b[dreact app",  "main": "index.js",  "scripts": {   "test": "echo \"error: no test specified\" && exit 1"  },  "author": "shubham",  "license": "mit",  "dependencies": {    "express": "^4.15.4",    "react": "^0.14.7",    "react-dom": "^0.14.7"   },  "devdependencies": {    "babel-core": "^6.5.1",    "babel-loader": "^6.2.2",    "babel-preset-es2015": "^6.5.0",    "babel-preset-react": "^6.5.0",    "webpack": "^1.12.13"  } } 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -