Open
Description
Version
5.0.0-rc.1
Environment info
Environment Info:
System:
OS: Linux 4.19 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: 1.22.15 - /usr/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm
Browsers:
Chrome: 96.0.4664.45
Firefox: Not Found
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.1.1
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 5.0.0-rc.1
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 5.0.0-rc.1
@vue/cli-plugin-babel: ~5.0.0-0 => 5.0.0-rc.1
@vue/cli-plugin-eslint: ~5.0.0-0 => 5.0.0-rc.1
@vue/cli-plugin-router: undefined (5.0.0-rc.1)
@vue/cli-plugin-typescript: ~5.0.0-0 => 5.0.0-rc.1
@vue/cli-plugin-unit-jest: ~5.0.0-0 => 5.0.0-rc.1
@vue/cli-plugin-vuex: undefined (5.0.0-rc.1)
@vue/cli-service: ~5.0.0-0 => 5.0.0-rc.1
@vue/cli-shared-utils: 5.0.0-rc.1
@vue/component-compiler-utils: 3.3.0
@vue/eslint-config-prettier: ^6.0.0 => 6.0.0
@vue/eslint-config-typescript: ^9.1.0 => 9.1.0
@vue/test-utils: ^1.3.0 => 1.3.0
@vue/vue2-jest: ^27.0.0-alpha.3 => 27.0.0-alpha.3
@vue/web-component-wrapper: 1.3.0
eslint-plugin-vue: ^8.0.3 => 8.0.3
jest-serializer-vue: 2.0.2
typescript: ~4.1.5 => 4.1.6
vue: ^2.6.11 => 2.6.14
vue-class-component: ^7.2.3 => 7.2.6
vue-cli-plugin-vuetify: ^2.4.3 => 2.4.3
vue-eslint-parser: 8.0.1
vue-hot-reload-api: 2.3.4
vue-loader: 16.8.3 (15.9.8)
vue-property-decorator: ^9.1.2 => 9.1.2
vue-style-loader: 4.1.3
vue-template-compiler: ^2.6.11 => 2.6.14
vue-template-es2015-compiler: 1.9.1
vuetify: ^2.4.0 => 2.6.0
vuetify-loader: ^1.7.0 => 1.7.3
npmGlobalPackages:
@vue/cli: 5.0.0-rc.1
Steps to reproduce
- Have a vue project with @vue/cli v5 dependencies run in a development container.
- Set up a custom "publicPath" in vue.config.js.
- Run "npm run serve"
What is expected?
If hot-reload needs additional config for a devServer running in a container, the proper way to fix it is given.
What is actually happening?
Hot-reload is not working, and we cannot set up devServer.public anymore. There should be an updated error message on how to fix it instead of the following, which we got:
It seems you are running Vue CLI inside a container.
Since you are using a non-root publicPath, the hot-reload socket
will not be able to infer the correct URL to connect. You should
explicitly specify the URL via devServer.public.
Access the dev server via http://localhost:<your container's external mapped port>
It seems that the update to webpack removed the devServer.public option that could have been used to fix the hot-reload issue. Please update the warning message to update on the proper way to fix the hot-reload issue.