pro-mern-stack icon indicating copy to clipboard operation
pro-mern-stack copied to clipboard

Code Listing for the book Pro MERN Stack

Results 42 pro-mern-stack issues
Sort by recently updated
recently updated
newest added

`npm run compile ` gives the following error ``` [email protected] compile C:\pro-mern-stack babel src –-presets react,es2015 –-out-dir static –-presets doesn't exist. react,es2015 doesn't exist. –-out-dir doesn't exist npm ERR! code...

`babel src -presets react,env -out-dir static` this has to be corrected to `babel src --presets react,env --out-dir static` It's mentioned properly in the GitHub repo

I had to use babel-preset-env instead and create a .babelrc file and write `{ "presets": ["env"] }`

forgot to add filter as a parameter to the find method: `db.collection('issues').find(filter).toArray().then((issues) => { ....`

I had issue with Transform until I added a .babelrc in the project folder and in the file I added { "presets": ["react"] } after the file was added I...

help wanted

After I added the "compile": and "watch": to under "scripts": in package.json, I run 'npm run compile' and I see the change 'src/App.jsx -> static/App.js in my terminal. That runs...

I'm a bit new to react but in other tutorials--they used create react app and there was no need to compile jsx files. Can someone explain if this way of...

**Router v4** is a little bit different > HashHistory import { HashRouter as Router, Route } from 'react-router-dom'; import App from './components/App'; render(( ), document.getElementById('root')); > BrowserHistory import { BrowserRouter...