用electron-webpack启动项目出错:
warning “electron-webpack > mini-css-extract-plugin@0.9.0” has incorrect peer dependency “webpack@^4.4.0”.
warning “electron-webpack > webpack-cli@3.3.12” has incorrect peer dependency “webpack@4.x.x”.
warning " > electron-webpack@2.8.2" has incorrect peer dependency “webpack@^4.42.1”.
[4/4] Building fresh packages…
success Saved 1 new dependency.
info Direct dependencies
└─ electron-webpack@2.8.2
info All dependencies
└─ electron-webpack@2.8.2
Done in 6.43s.
D:\Software\electron_projects\demo_yarn2.1\demo_yarn>yarn start
yarn run v1.22.10
$ electron-webpack dev
┏ Renderer -------------------
AttachConsole failed with error 6: �������
┗ ----------------------------
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.