webpack打包ts时一运行就会出现这样

[wds]:Invalid configuration object. Webpack has been initialized using a configuration object that does not match the AP schema.
configuration.devtool should match pattern "(inline-lhidden-leval-)?(nosources-)?(cheap-(module-)?)? BREAKING CHANGE since webpack 5: The devtool option is more strict. Please strictly follow the order of the keywords in the pattern. npm ERR! code ELIFECYCLE
npm ERR! errno1
npm ERR!03 webpack_ts01.0.0 dev:"cross-env NODE_ENV=development webpack-dev-server -config build/webpa
npm ERR! Exit status 1
npm ERR!
.....

img

你好,根据报错是配置文件里面的devtool相关配置有问题,导致的报错。