yjad 2021-09-13 17:14 采纳率: 0%
浏览 66

configuration[0] has an unknown property 'experiments'.至今找不到这个问题experiments


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.
  • 写回答

3条回答 默认 最新

  • 於黾 2021-09-13 17:26
    关注

    你先去代码里找这个experiments,看哪里用了啊
    然后看configuration[0]当时是个什么,是None吗,还是什么

    评论

报告相同问题?

问题事件

  • 创建了问题 9月13日

悬赏问题

  • ¥15 高通uboot 打印ubi init err 22
  • ¥20 PDF元数据中的XMP媒体管理属性
  • ¥15 R语言中lasso回归报错
  • ¥15 网站突然不能访问了,上午还好好的
  • ¥15 有没有dl可以帮弄”我去图书馆”秒选道具和积分
  • ¥15 semrush,SEO,内嵌网站,api
  • ¥15 Stata:为什么reghdfe后的因变量没有被发现识别啊
  • ¥15 振荡电路,ADS仿真
  • ¥15 关于#c语言#的问题,请各位专家解答!
  • ¥15 这个如何解决详细步骤