我正在尝试编译前端并键入yarn start
以启动 jhipster-registry 的前端。但是我得到了这个我无法修复的错误。此外,页面要么是空白,要么是 404。我已经附上了整个堆栈跟踪:
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack/webpack.dev.js --progress --inline --hot --profile --port=9060 --watch-content-base
× 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[6].exclude should be one of these:
RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? } | [RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }]
-> One or multiple rule conditions
Details:
* configuration.module.rules[1].exclude should be an instance of RegExp
* configuration.module.rules[1].exclude should be a string.
* configuration.module.rules[1].exclude should be an instance of function
* configuration.module.rules[1].exclude[0] should be an instance of RegExp
* configuration.module.rules[1].exclude[0]: The provided value "./src/main/webapp/index.html" is not an absolute path!
* configuration.module.rules[1].exclude[0] should be an instance of function
* configuration.module.rules[1].exclude[0] should be an array:
[RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }]
* configuration.module.rules[1].exclude[0] should be an object.
* configuration.module.rules[1].exclude should be an object.
* configuration.module.rules[1].exclude[0] should be an instance of RegExp
* configuration.module.rules[1].exclude[0]: The provided value "./src/main/webapp/index.html" is not an absolute path!
* configuration.module.rules[1].exclude[0] should be an instance of function
* configuration.module.rules[1].exclude[0] should be an array:
[RegExp | string | function | [(recursive)] | object { and?, exclude?, include?, not?, or?, test? }]
* configuration.module.rules[1].exclude[0] should be an object.
* configuration.module.rules[5].exclude should be an instance of RegExp
* configuration.module.rules[5].exclude should be a string.
* configuration.module.rules[5].exclude should be an instance of function
* configuration.module.rules[5].exclude[0] should be an instance of RegExp
* configuration.module.rules[5].exclude[0]: The provided value "node_modules" is not an absolute path!
* configuration.module.rules[5].exclude[0] should be an instance of function
* configuration.module.rules[5].exclude[0] should be an array:
* inner part which I cut
* configuration.module.rules[6].exclude[0] should be an object.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.