vuejs / vuejs/apollo

Getting Failed to construct 'WebSocket': The URL 'undefined' is invalid

Open
#1,237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Upon install with vue cli @vue/cli 4.5.13 I am getting the error Failed to construct 'WebSocket': The URL 'undefined' is invalid

To Reproduce
Steps to reproduce the behavior:

  1. install vue-cli
  2. install vue-apollo plugin
  3. run app, crash in ui

Expected behavior
vue apollo should start

Versions
vue: 2.6.11
vue-apollo: 3.0.0-beta.11
@apollo/client: 3.4.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reproducing the crash with Vue CLI 4.5.13, vue-apollo 3.0.0-beta.11, Vue 2.6.11, and @apollo/client 3.4.1 using the listed installation steps. Trace the startup path that constructs the WebSocket and confirm the app starts without the invalid undefined URL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.