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.
configuration[0] has an unknown property 'experiments'.至今找不到这个问题experiments
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
於黾 2021-09-13 17:26关注你先去代码里找这个experiments,看哪里用了啊
然后看configuration[0]当时是个什么,是None吗,还是什么解决 无用评论 打赏 举报