pro-mern-stack
pro-mern-stack copied to clipboard
Code Listing for the book Pro MERN Stack
In ch-6 ,You explained 4 different paradigm for dealing with MongoDb. I think Es7 async await pattern is the most simple approach. Babel also provides Es2017 preset. I think you...
There are some changes you need to make if you're using WebPack 3.0+ For webpack.config.js, I had to make the file look like this: const webpack = require('webpack'); const path...
In problem #2 for the "Setting State" exercise, it says to look up a guide called Reusable Components in the React Documentation, and to read a section called "No Autobinding"....
The book has multiple periods on the return on two functions in the tryMongo.js file: book has this: ``` function testWithPromises() { let db; MongoClient.connect('mongodb://localhost/playground').then(connection => { db = connection;...
Running the "npm run watch" command could cause an error. Pay attention to the notes in the error as seen blow ******************** Error: Deprecation notice: CommonsChunkPlugin now only takes a...
I am on windows 10 64 bit machine. I am not running any vm. These scripts work `"compile": "babel src --presets react --out-dir static",` ` "watch": "babel src --presets react...
In Listing 2-6, the command line parameters should have double-dashes rather than single dashes. The repository code is correct, the book has an error. Correct: ``` "compile": "babel src --presets...
vagrant@scotchbox:/var/www/public/pro-mern-stack$ node_modules/.bin/babel src --presets react --out-dir static -bash: node_modules/.bin/babel: Permission denied
I've followed to the end of chapter 11. When I run the command "npm run dev-all" and then go to localhost:3000, there's no CSS. It's plain HTML. All the bootstrap...
In Chapter 10, page 208, just before listing 10-1, since Windows does not support soft links, the book says that the directory node_modules/bootstrap/dist can be copied to the static directory...