【发布时间】:2021-07-24 08:29:59
【问题描述】:
我在 Symfony 5 中使用 Vue.js 运行命令 yarn encore dev-server。我遇到了以下错误:
PS C:\Apache24\htdocs\api_example> yarn encore dev-server
yarn run v1.22.5
$ C:\Apache24\htdocs\api_example\node_modules\.bin\encore dev-server
Running webpack-dev-server ...
RECOMMEND To create a smaller (and CSP-compliant) build, see https://symfony.com/doc/current/frontend/encore/vuejs.html#runtime-compiler-build
**[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options.client has an unknown property 'host'. These properties are valid:
object { logging?, overlay?, progress?, webSocketTransport?, webSocketURL? }**
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
【问题讨论】:
标签: symfony webpack-dev-server webpack-encore