Hey, I've started using (and loving) MERN stack on a new app that I've been tasked with developing, have been focussing mostly on front end up until today and it has been great!. It's currently taking 2-3 minutes to start or restart the nodemon task (via npm run start) which is pretty frustrating while I'm trying to get authentication right and having to constantly wait..
Is this a normal experience or something particular in my env??
I'm on a 2014 macbook air running Sierra and havent experienced issues with gulp, grunt or nodemon in the past, this is my first experience with webpack and isomorphic though...
-edit-
It may be worth noting that I get the child processes triggering on every change, example below:
[nodemon] files triggering change check: server/routes/User.routes.js
[nodemon] matched rule: **/Users/nicky/Sites/isw-contacts/server/**/*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] server/routes/User.routes.js
[nodemon] starting `node index.js`
[nodemon] child pid: 69369
[nodemon] files triggering change check: server/routes/User.routes.js
[nodemon] matched rule: **/Users/nicky/Sites/isw-contacts/server/**/*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] server/routes/User.routes.js
[nodemon] starting `node index.js`
[nodemon] child pid: 69372
[nodemon] files triggering change check: server/routes/User.routes.js
[nodemon] matched rule: **/Users/nicky/Sites/isw-contacts/server/**/*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] server/routes/User.routes.js
[nodemon] starting `node index.js`
[nodemon] child pid: 69375
Hey @somu How's that update coming? Have a colleague who also just started with MERN (on Windows) and feeling a bit of pain with startup times, especially when debugging on the server side.. Oh, and where would I go to get such an update? will it be new packages in mern-starter.git, an update to mern-cli or something else?
Somasundaram Ayyappan
Hey Nicky,
I'm glad that you like MERN. This problem is at the top of my to-fix list. The delay is caused by one of the babel plugins we use to achieve server-side rendering. In fact, I'm already working on an alternative which also hot reloads the server. You can expect the update in a couple of days.