ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` configuration.module has an unknown property 'resolve'. These properties are valid ``` ``` × 「wds」: Invalid configuration object. Webpack has been initialized using a configuration object that does not match th e API schema. - configuration.module has an unknown property 'resolve'. These properties are valid: object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, generat or?, noParse?, parser?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownCont extRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecur sive?, wrappedContextRegExp? } -> Options affecting the normal modules (`NormalModuleFactory`). ``` ``` × 「wds」: Invalid configuration object. Webpack has been initialized using a configuration object that does not match th e API schema. - configuration.module has an unknown property 'plugins'. These properties are valid: object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, generat or?, noParse?, parser?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownCont extRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecur sive?, wrappedContextRegExp? } -> Options affecting the normal modules (`NormalModuleFactory`). ``` ``` plugins:[ new HtmlwebpackPlugin({ title:'my first react app' }) ], resolve:{ extensions:['','.js','jsx'] } } ``` ``` var path = require('path'); var webpack = require('webpack'); var HtmlwebpackPlugin = require('html-webpack-plugin'); var ROOT_PATH = path.resolve(__dirname); var APP_PATH = path.resolve(ROOT_PATH,'src'); var BUILD_PATH = path.resolve(ROOT_PATH,'build'); module.exports = { entry:{ app:path.resolve(APP_PATH,'index.jsx') }, output:{ path:BUILD_PATH, filename:'bundle.js' }, devtool:'eval-source-map', devServer:{ historyApiFallback:true, hot:true, progress:true }, module:{ rules:[ { test:/\.jsx?$/, loader:'eslint', include:APP_PATH } ], rules:[ { test:/\.jsx?$/, loader:'babel-loader', include:APP_PATH } ] }, plugins:[ new HtmlwebpackPlugin({ title:'my first react app' }) ], resolve:{ extensions:['','.js','jsx'] } } ```