Deploy errors ReactJS
Deploy 2018
Cách fix:$ react-scripts buildCreating an optimized production build...C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:249if (extractedChunk.getNumberOfModules()) {^TypeError: extractedChunk.getNumberOfModules is not a functionat ExtractTextPlugin.<anonymous> (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:249:32)at Array.forEach (native)at Compilation.<anonymous> (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:248:27)at Compilation.applyPluginsAsyncSeries (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\tapable\lib\Tapable.js:206:13)at sealPart2 (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\react-scripts\node_modules\webpack\lib\Compilation.js:662:9)at next (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\tapable\lib\Tapable.js:202:11)at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:244:13at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:473:16at iteratorCallback (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:1064:13)at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:969:16at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:227:15at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:473:16at iteratorCallback (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:1064:13)at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\async\dist\async.js:969:16at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:216:21at rebuilding.forEach.cb (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\react-scripts\node_modules\webpack\lib\Compilation.js:530:29)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018>npm install webpack@3.1.0 --save-devreact-tutorial-september-2018@0.1.0 C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018+-- react-loading-screen@0.0.17| `-- webpack@2.7.0| +-- ajv@4.11.8| `-- ajv-keywords@1.5.1`-- webpack@3.1.0+-- ajv@5.5.2+-- ajv-keywords@2.1.1`-- loader-utils@1.1.0npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules\chokidar\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.3 (node_modules\react-scripts\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm install webpack@3.1.0 --save-dev
0 nhận xét:
Post a Comment