problems running react-samples ..
Let me preface this with ... I'm new to React, so be gentle
When I run:
webpack --watch
I get:
`webpack is watching the files…
Hash: f76b3ed51ab078fb0d0a Version: webpack 4.23.1 Time: 976ms Built at: 10/30/2018 8:42:57 PM 2 assets Entrypoint main = src/bundle.js src/bundle.js.map [0] ./src/js/app.js 4.58 KiB {0} [built] [failed] [1 error]
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in ./src/js/app.js Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: /Users/markj/Downloads/react-samples-master/src/js/app.js: Unexpected token (11:13)
9 | samples.push(require('./grid/grid-view')); 10 |
11 | React.render(<Nav samples={samples}/>, document.getElementById("nav")); | ^ at Parser.raise (/Users/markj/Downloads/react-samples-master/node_modules/@babel/parser/lib/index.js:3939:15)`
Does anyone have any idea how I fix this?