npm run eject 将webpack.config.dev中ModuleScopePlugin指令注釋掉即可。 //new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]),