apollographql / apollographql/apollo-tooling
Error in "Loading schema for the Project"
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Laravel lighthouse as a GraphQL server and vue-apollo as a client.
I wanna use your extension for VSCode but I've got this error message:
`Error in "Loading schema for booksql": Error: Unable to read file /Users/mehdi/VueProjects/Test/booksql/node_modules/.temp/graphql/schema.json. ENOENT: no such file or directory, open '/Users/mehdi/VueProjects/Test/booksql/node_modules/.temp/graphql/schema.json'`
apollo.config.js:
```
const path = require('path')
module.exports = {
service: {
name: 'booksql',
endpoint: {
url: 'http://booksql.test/graphql'
},
localSchemaFile: path.resolve('./src/graphql/lighthouse-schema.graphql')
}
}
```
There is lighthouse-schema.graphql in the folder and the url is correct and application works but the extension has a problem.
Could you help me? what's the problem?
Contributor guide
Research direction
Start with the reported apollo.config.js and reproduce the schema-loading error using its localSchemaFile and endpoint settings. Inspect why node_modules/.temp/graphql/schema.json is expected, then verify that the extension loads the existing src/graphql/lighthouse-schema.graphql without the ENOENT error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100