TypeError: Cannot read property 'schemaPath' of undefined
See original GitHub issueHi,
I cannot make this run on Windows 😭 I am receiving this error:
(node:6500) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 14:13:40] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'projectName' of undefined
Code: -32603
This is my .graphqlconfig.yml
projects:
app:
schemaPath: "src/data/yoga/schema.graphql"
includes: ["src/**/*.graphql"]
extensions:
endpoints:
default: "http://localhost:4000"
codegen:
- generator: prisma-binding
language: typescript
output:
binding: src/data/generated/api.ts
prisma:
schemaPath: "src/data/generated/prisma.graphql"
includes: ["src/**/*.graphql"]
extensions:
prisma: src/data/prisma/prisma.yml
codegen:
- generator: prisma-binding
language: typescript
output:
binding: src/data/generated/prisma.ts
All Works well on MAC with this setup
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:36 (5 by maintainers)
Top Results From Across the Web
Cannot read property 'schemaPath' of undefined · Issue #2345 ...
I have debugged the plugin and the issue seems to be in GraphQLLanguageService.js file. The project config is not detected. In following lines, ......
Read more >Cannot read property 'path' of undefined in Mongoose 4.0.3 ...
But I'm getting a TypeError : Usr.schema.path('email1').validate(function (value) { ^ TypeError: Cannot read property 'path' of undefined.
Read more >TypeError: Cannot read property 'schema' of undefined
I get this error while validating this swagger file. According to swagger-cli, this file is valid and I cannot understand the reason.
Read more >Cannot read property scope of undefined - Treehouse
I'm getting an error when I run this project. Here is the stack trace. TypeError: Cannot read property 'scope' of undefined at EmbeddedDocument....
Read more >Re: [mongoose] Cannot read property 'name' of undefined.
TypeError : Cannot read property 'Issue' of undefined. I tried to console log the "this" context in the method Mongoose.prototype.model, which shows an...
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
Wow, the issue is still persists
Facing this issue as well using vscode on MacOS.