question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'schemaPath' of undefined

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Reactions:22
  • Comments:36 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
dvakatsiienkocommented, Apr 15, 2020

Wow, the issue is still persists

7reactions
chanlitocommented, Oct 18, 2018

Facing this issue as well using vscode on MacOS.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found