react scaffolding pulled webpack error resolved

  When we wrote react projects may webpack original configuration does not meet our needs, so we need to configure, but you can not find the file in an external webpack when creating scaffolding, scaffolding webpack file in the scripts folder node_modules , if not pulled out, then the other members when pulling the code can not get your webpack configuration.

  We tried to pull away webpack, first of all to perform

cnpm run eject

  This time may see an error message, as follows:

Remove untracked files, stash or commit any changes, and try again.

  Repeated, heavy equipment node_modules, or not.

  solution:

  1、

git init

  2、

git add .

  3、

git commit -m 'init'

  Then again pulled on it.

Guess you like

Origin www.cnblogs.com/mengshou/p/11855798.html