Getting Failed to construct 'WebSocket': The URL 'undefined' is invalid
Open
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:
- install vue-cli
- install vue-apollo plugin
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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