• Thế Giới Giải Mã

    Bí ẩn nhân loại Leonardo Da Vinci

  • Thế Giới Giải Mã

    Anh hùng thầm lặng Nikola Tesla

  • Thế Giới Giải Mã

    Thần đèn Thomas Edison

  • Thế Giới Giải Mã

    Người thôi miên Adolf Hitler

Showing posts with label Deploy errors. Show all posts
Showing posts with label Deploy errors. Show all posts

11 September 2018

Deploy Error TypeError: extractedChunk.getNumberOfModules is not a function

Deploy errors ReactJS
Deploy 2018
$ react-scripts build
Creating an optimized production build...
C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_modules\e
xtract-text-webpack-plugin\dist\index.js:249
            if (extractedChunk.getNumberOfModules()) {
                               ^
TypeError: extractedChunk.getNumberOfModules is not a function
    at ExtractTextPlugin.<anonymous> (C:\Users\Antonio\Desktop\New folder\react-
tutorial-september-2018\node_modules\extract-text-webpack-plugin\dist\index.js:2
49:32)
    at Array.forEach (native)
    at Compilation.<anonymous> (C:\Users\Antonio\Desktop\New folder\react-tutori
al-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-2
018\node_modules\react-scripts\node_modules\webpack\lib\Compilation.js:662:9)
    at next (C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\n
ode_modules\tapable\lib\Tapable.js:202:11)
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\extract-text-webpack-plugin\dist\index.js:244:13
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\async\dist\async.js:473:16
    at iteratorCallback (C:\Users\Antonio\Desktop\New folder\react-tutorial-sept
ember-2018\node_modules\async\dist\async.js:1064:13)
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\async\dist\async.js:969:16
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\extract-text-webpack-plugin\dist\index.js:227:15
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\async\dist\async.js:473:16
    at iteratorCallback (C:\Users\Antonio\Desktop\New folder\react-tutorial-sept
ember-2018\node_modules\async\dist\async.js:1064:13)
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\async\dist\async.js:969:16
    at C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018\node_mo
dules\extract-text-webpack-plugin\dist\index.js:216:21
    at 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 comm
and.
C:\Users\Antonio\Desktop\New folder\react-tutorial-september-2018>npm install we
bpack@3.1.0 --save-dev
react-tutorial-september-2018@0.1.0 C:\Users\Antonio\Desktop\New folder\react-tu
torial-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.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules\ch
okidar\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\re
act-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"}
)
Cách fix:
npm install webpack@3.1.0 --save-dev

 

BACK TO TOP

Xuống cuối trang