Command 'Execute GraphQL Operations' resulted in an error (Cannot read property 'uri' of undefined)
See original GitHub issueActual Behavior
Executing Query from VS Code doesn’t show any results and throws error: “Command ‘Execute GraphQL Operations’ resulted in an error (Cannot read property ‘uri’ of undefined)”
Expected Behavior
Should show Query result
Steps to Reproduce the Problem Or Description
- Install vscode-graphql
- add ‘graphql.config.js’ to project root
- add following content to graphql.config.js
const { projectConfig } = require('./project.config.js')
module.exports = {
schema: './graphql/schema/_schema.graphql',
documents: [':./graphql/queries/*.js'],
extensions: {
endpoints: {
default: {
url: projectConfig.apiUrl,
},
},
},
}
assuming projectConfig.apiUrl is set to a string represantion of a valid graphql endpoint.
- Open any Query.js file in ~/graphql/queries/ .
- Click “Execute Query” as context option OR open command pallette and enter “Execute GraphQL Operations”
Specifications
- GraphQL for VSCode Extension Version: v0.3.13
- VSCode Version: 1.52.1
- OS Name: macOS Big Sur
- OS Version: 11.1
Logs Of TS Server || GraphQL Language Service
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Command 'Execute GraphQL Operations' resulted in an error ...
Actual Behavior Executing Query from VS Code doesn't show any results ... resulted in an error (Cannot read property 'uri' of undefined)" ...
Read more >GraphQL: TypeError: Cannot read property of undefined
I see, you are trying to access user object from context. Please check the context definition. It should return an object containing user...
Read more >Cannot read property 'launchAPI' of undefined in Apollo ...
Hi, there. I'm trying the following query in Apollo Graphql Studio while checking the tutorial. query GetLaunches { launches { id mission {...
Read more >Changelog - Cypress Documentation
Cypress no longer throws the error "cannot read property split of undefined" in certain circumstances when application errors are thrown. Fixes #17378.
Read more >cannot read properties of undefined (reading 'map') typescript
This error occurs because react-scripts has a direct dependency on the 2.xx range of @typescript-eslint/parser and @typescript-eslint/eslint-plugin . You can ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the pointers, both. I am up and running with my own schema & server. My problem was basically user error, and perhaps some broken typescript setup stopping me following the instructions in the readme.
Naming things is hard, but in a picture -
Having the same issue:
Steps to Reproduce the Problem Or Description
Specifications