TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯
標題 TypeError: The ‘compilation’ argument must be an instance of Compilation
Html Webpack Plugin:
TypeError: The ‘compilation’ argument must be an instance of Compilation
-
JavascriptModulesPlugin.js:119 getCompilationHooks
[myWebpack]/[webpack]/lib/javascript/JavascriptModulesPlugin.js:119:10 -
CommonJsChunkFormatPlugin.js:30
[myWebpack]/[webpack]/lib/javascript/CommonJsChunkFormatPlugin.js:30:19 -
Hook.js:14 Hook.CALL_DELEGATE [as _call]
[npm]/[webpack]/[tapable]/lib/Hook.js:14:14 -
Compiler.js:942 Compiler.newCompilation
[npm]/[webpack]/lib/Compiler.js:942:30 -
Compiler.js:984
[npm]/[webpack]/lib/Compiler.js:984:29 -
Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
[npm]/[webpack]/[tapable]/lib/Hook.js:18:14 -
Compiler.js:979 Compiler.compile
[npm]/[webpack]/lib/Compiler.js:979:28 -
Compiler.js:494 Compiler.runAsChild
[npm]/[webpack]/lib/Compiler.js:494:8
**就是webpack-cli出現問題 **
簡單解決: webpack-cli 降級3.3.12版本即可
1.刪除package.json中的 webpack-cli
2. npm install webpack-cli@3.3.12
相關文章
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- Aheadof Time Compilation(AOT) vs (JIT)Just In Time compilation approachAPP
- preg_match_all (): Compilation failed:AI
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- webpack 流程解析(3) 建立compilation物件Web物件
- Translation unit v.s Compilation unit
- Compilation of Views and PL/SQL Program Units (242)ViewSQL
- 什麼是 Angular Ivy Partial compilation modeAngular
- perl adbldxml.pl報錯BEGIN failed--compilation aborted at adbldxml.pl line 32XMLAI
- Help Needed in compilation when TARGET_BUILD_VARIANT is set as "user".UI
- Oracle 10gR2 – Conditional PL/SQL Compilation(轉)Oracle 10gSQL
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- sublime text編譯時提示錯誤[Decode error - output not utf-8] compilation terminated編譯Error
- Property visible must be accessed with $ or _ are not proxied in the Vue instance to prevent錯誤Vue
- 淺析webpack原始碼之Compilation.js粗解(九)Web原始碼JS
- maven install 時報 COMPILATION ERROR 軟體包不存在MavenError
- python argument 1 must be 2-item sequence, not intPython
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- 【已解決】TypeError: __init__() takes 1 positional argument but 2 were givenError
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- 由於字符集問題導致 Package Body created with compilation errors.PackageError
- Oracle PL/SQL 優化與調整 – PL/SQL Native Compilation 說明OracleSQL優化
- js 函式報錯“Uncaught: TypeError xxx is not a function”JS函式ErrorFunction
- 網站編譯錯誤 Server Error in '/' Application Compilation Error error code -1073741502 csc.exe網站編譯ServerErrorAPP
- TypeError:a.replaceisnotafunction錯誤ErrorFunction
- Python報錯:TypeError: a bytes-like object is required, not ‘str‘PythonErrorObjectUI
- [bug] captcha中demo執行失敗(TypeError must be sequence of length 4, not 2)APTError
- Python成功解決TypeError: __init__() missing 1 required positional argument: ‘comment‘PythonErrorUI
- 專案莫名其妙的Unsupported Modules Detected: Compilation is not supported for following modules: MyView. ......View
- VUE前端打包報錯:TypeError: Class extends value undefined is not a constructor or nullVue前端ErrorUndefinedStructNull
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- informix停資料庫是報錯:Must be a DBSA to run this programORM資料庫
- Python:Python3錯誤提示TypeError: slice indices must be integers or None or have an __index__ method解決辦法PythonErrorNoneIndex
- el-tree 報錯 TypeError: Cannot read property ‘setCheckedKeys‘ of undefined“ErrorUndefined
- Ajax 報錯jquery-3.3.1.min.js:2 Uncaught TypeError: Cannot use 'in' operator to seajQueryJSError
- 報錯indexerror: tensors used as indices must be long, byte or bool tensorsIndexError
- Pycharm:設定完Anaconda後報錯TypeError: an integer is required (got type bytes)PyCharmErrorUIGo
- Not-null property references a transient value - transient instance must be saved before current opeNull