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
- webpack 流程解析(3) 建立compilation物件Web物件
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- 什麼是 Angular Ivy Partial compilation modeAngular
- 莫名其妙的BUG——Compilation errorError
- Property visible must be accessed with $ or _ are not proxied in the Vue instance to prevent錯誤Vue
- 淺析webpack原始碼之Compilation.js粗解(九)Web原始碼JS
- python argument 1 must be 2-item sequence, not intPython
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- Compilation failure 不再支援源選項 5。請使用 6 或更高版本。AI
- 專案莫名其妙的Unsupported Modules Detected: Compilation is not supported for following modules: MyView. ......View
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- 【已解決】TypeError: __init__() takes 1 positional argument but 2 were givenError
- Python成功解決TypeError: __init__() missing 1 required positional argument: ‘comment‘PythonErrorUI
- Python報錯:TypeError: a bytes-like object is required, not ‘str‘PythonErrorObjectUI
- vue3 動態編譯元件失敗:Component provided template option but runtime compilation is not supported in this build of VueVue編譯元件IDEUI
- Python:Python3錯誤提示TypeError: slice indices must be integers or None or have an __index__ method解決辦法PythonErrorNoneIndex
- 報錯indexerror: tensors used as indices must be long, byte or bool tensorsIndexError
- Tensorflow Keras load_model報錯got an unexpected keyword argument ‘ragged‘KerasGo
- el-tree 報錯 TypeError: Cannot read property ‘setCheckedKeys‘ of undefined“ErrorUndefined
- VUE前端打包報錯:TypeError: Class extends value undefined is not a constructor or nullVue前端ErrorUndefinedStructNull
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- thinkphp升級後報錯Declaration of thinkappUrl::build() must be compatible with think outeUrl::build():PHPAPPUI
- Pycharm:設定完Anaconda後報錯TypeError: an integer is required (got type bytes)PyCharmErrorUIGo
- python用pyinstaller生成exe時報錯 TypeError: an integer is required (got type bytes)PythonErrorUIGo
- 【Redis】錯誤:failed: Hostname must not be empty or nullRedisAINull
- Android之Retrofit報錯Form-encoded method must contain at least one @Field.AndroidORMAIAST
- Input報錯“Form elements must have labels: Element has no title attribute Element has no placeholde”ORM
- Ajax 報錯jquery-3.3.1.min.js:2 Uncaught TypeError: Cannot use 'in' operator to seajQueryJSError
- yolov5 train報錯:TypeError: expected np.ndarray (got numpy.ndarray)YOLOAIErrorGo
- Elasticsearch 6 建立索引報錯 invalid_index_name_exception Invalid index name [testDemo], must be lowercaseElasticsearch索引IndexException
- vue專案報錯[Vue warn]: Property “visible“ must be accessed with “$data.visible“ because properties startVue
- zblog升級報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- react 和redux整合報TypeError: Object(...) is not a functionReactReduxErrorObjectFunction
- ZBlog升級1.7報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- python 讀取 csv 檔案報錯:file = builtins.open (filename, mode, buffering),OSError: [Errno 22] Invalid argumentPythonUIError