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!
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)/ } ] } };
{ "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
Post a Comment