yarn run v1.22.1166\IUES\ClientApp>yarn start
$ cross-env UMI_ENV=dev umi dev
Bundle with webpack 5...
Starting the development server...
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration[0] has an unknown property 'experiments'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions? }
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration[0] has an unknown property 'experiments'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions? }
at Object.webpack (E:\IUES\IUESDemo666\IUES\ClientApp\node_modules\@umijs\deps\compiled\webpack\4\bundle4.js:138983:9)
at Bundler.setupDevServerOpts (E:\IUES\IUESDemo666\IUES\ClientApp\node_modules\@umijs\bundler-webpack\lib\index.js:197:40)
at E:\IUES\IUESDemo666\IUES\ClientApp\node_modules\umi\node_modules\@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:300:30
at Generator.next (<anonymous>)
at asyncGeneratorStep (E:\IUES\IUESDemo666\IUES\ClientApp\node_modules\umi\node_modules\@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:74:103)
at _next (E:\IUES\IUESDemo666\IUES\ClientApp\node_modules\umi\node_modules\@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:76:194)
Done in 8.91s.
你先去代码里找这个experiments,看哪里用了啊
然后看configuration[0]当时是个什么,是None吗,还是什么
主要是在整个项目中没有找到experiments这个,以至于暂时无法解决。
请问解决了吗?我也有同样的问题