Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration.output has an unknown property 'type'. These properties are valid: object { assetModuleFilename?, auxiliaryComment?, charset?, chunkFilename?, chunkFormat?, chunkLoadTimeout?, chunkLoading?, chunkLoadingGlobal?, clean?, compareBeforeEmit?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolModuleFilenameTemplate?, devtoolNamespace?, enabledChunkLoadingTypes?, enabledLibraryTypes?, enabledWasmLoadingTypes?, environment?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateGlobal?, hotUpdateMainFilename?, iife?, importFunctionName?, importMetaName?, library?, libraryExport?, libraryTarget?, module?, path?, pathinfo?, publicPath?, scriptType?, sourceMapFilename?, sourcePrefix?, strictModuleErrorHandling?, strictModuleExceptionHandling?, umdNamedDefine?, uniqueName?, wasmLoading?, webassemblyModuleFilename?, workerChunkLoading?, workerWasmLoading? } -> Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk. 分析报错
时间: 2023-07-12 12:30:00 浏览: 94
这个错误提示是关于 Webpack 的配置问题,具体信息是:在你的配置中,'output' 属性中有一个未知的属性 'type',而这个属性在 Webpack 的 API schema 中并不存在。正确的属性应该是:'assetModuleFilename', 'auxiliaryComment', 'charset', 'chunkFilename', 'chunkFormat', 'chunkLoadTimeout', 'chunkLoading', 'chunkLoadingGlobal', 'clean', 'compareBeforeEmit', 'crossOriginLoading', 'devtoolFallbackModuleFilenameTemplate', 'devtoolModuleFilenameTemplate', 'devtoolNamespace', 'enabledChunkLoadingTypes', 'enabledLibraryTypes', 'enabledWasmLoadingTypes', 'environment', 'filename', 'globalObject', 'hashDigest', 'hashDigestLength', 'hashFunction', 'hashSalt', 'hotUpdateChunkFilename', 'hotUpdateGlobal', 'hotUpdateMainFilename', 'iife', 'importFunctionName', 'importMetaName', 'library', 'libraryExport', 'libraryTarget', 'module', 'path', 'pathinfo', 'publicPath', 'scriptType', 'sourceMapFilename', 'sourcePrefix', 'strictModuleErrorHandling', 'strictModuleExceptionHandling', 'umdNamedDefine', 'uniqueName', 'wasmLoading', 'webassemblyModuleFilename', 'workerChunkLoading', 'workerWasmLoading'。你需要检查一下你的配置项,去掉 'type' 这个属性即可。
阅读全文