JHipster注册表空白页

时间:2018-11-20 22:18:45

标签: spring webpack jhipster yarnpkg jhipster-registry

我正在尝试编译前端,并键入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.

0 个答案:

没有答案