[error] WebSocket connection to 'ws://localhost:{port}/ws' failed:

vue.js 에서 web socket 을 안쓰는데도 에러가 나올 경우에만 가능한 해결방법이다.

vue.config.js 파일을 열고 아래처럼

const {defineConfig} = require( '@vue/cli-service' )
module.exports = defineConfig( {
  transpileDependencies: true,
  devServer: {
    allowedHosts: "all",
    webSocketServer: false
  }
} )

webSocket connection to 'ws://localhost:58080/ws' failed:

부분을 추가해 준다.

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com