-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'schemaPath' of undefined #2345
Comments
Seeing the same issue |
@ntziolis : Are you also running windows? I will pick this up shortly. |
Yes I am. That said, I'm pretty sure think this was related to an old graphql version. Since I updated the graphql version locally as well as globally the error has dissapeared and im getting linting and auto completion for .graphql files but not yet in gql tags. See the gql tag issue as I provided a repository for reproduction. @tomitrescak What version of graphql or graphql-cli do you have installed globally/locally? |
@ntziolis no love for me ;( |
@ntziolis @divyenduz do you maybe have a repo that I can download and test, whether the problem is not in my configuration? My error window is full of following:
|
Sorry about one more message, my repo where it fails on windows but not on mac is here: |
I have debugged the plugin and the issue seems to be in
[EDIT] Further investigation showed that the error originates in the I managed to solve this error, but this snowballed to other errors. |
@tomitrescak : Thanks for the details and your debugging efforts. This will be most likely be resolved by the latest beta coming today/tomorrow. Most likely because not tested on windows yet. I will automate testing on multiple OS in coming days. Thanks! |
@tomitrescak I actually did create a repo for exactly this purpose, see here: graphql/vscode-graphql#21 (comment) I'd be keen to know if this repo is working for you and if so which branch (local typescript version or vscode version) |
@ntziolis : Sure, I will visit this later today :) |
I have the same issue on Linux, so it seems that it's not necessarily windows specific. If you need more information please let me know. |
@steebchen @tomitrescak Can you guys clone the following super minimal repo and let us know if you still see the issue? This way we can eliminate miss configuration as a cause. Note: I was seeing the same issue, but after setting up the configuration from scratch it went away. Hence I created this bare metal repo for testing. |
@ntziolis I don't have this error on your repo, instead I'm getting |
I'm having this problem too. {
"projects": {
"app": {
"schemaPath": "generated/schema.graphql",
"includes": ["src/graphql/**/*.graphql"],
"extensions": {
"endpoints": {
"prod": "http://localhost:4000"
}
}
}
}
} Versions:
Errors:
|
I'm having the same issue in Mac |
@ntziolis I am wondering whether Go To definition works for you in .graphql files, when you are defining your schema. I tried several repos and no love for me. prisma/1.15.1 (darwin-x64) node-v10.9.0 |
Having this issue also on windows |
Same issue here. Windows 10 1709. And as @tomitrescak said above, Go To Definition does not work, either. |
It appears that the project key must be equal to the folder name in vscode. For example: {
"projects": {
"folder-name": { <---- this needs to be the folder you are working on
"schemaPath": "generated/schema.graphql",
"includes": ["src/graphql/**/*.graphql"],
"extensions": {
"endpoints": {
"prod": "http://localhost:4000"
}
}
}
}
} |
Facing this issue as well using vscode on MacOS. |
I've run into this on macOS as well, and found that the issue was a space in my project path. The |
Just installed plugin.
MacOS |
I never made this work. Using the Apollo version now. It does not have the go to definition for server defined schemas but otherwise works nicely. |
same here, tried all, nothing works.
I noticed that 'schemaPath' thing occurs if prisma project is defined. If I remove it, it does not show
|
Having the same issue in macOS.
|
Is there a fix for this issue? |
Same problem on osx:
I get the output:
|
Is there at least any workaround? |
I might have fixed this in kamilkisiela/graphql-config#124 by switching the config resolution to use I'm having the same issue on MacOS. |
Any news? Aparently |
Anyone have a configuration the DOES work on windows? I have tried to get this one to work for 2 days and cant seem to get any configuration that will light up all the features. The documentation is very minimal and also conflicts with the documentation on the graphql config website. I am just about ready to give up. |
seeing same issue on mac os, not able to make this work |
Seeing the same issue on MacOS - anyone found a workaround? |
The only way I made this work was to download SDL from playground and the use a local schema path |
Wow, the issue is still persists |
we are on graphql config 4 now so this should be resolved! use |
Hi,
I cannot make this run on Windows ;(
I am receiving this error:
This is my .graphqlconfig.yml
All Works well on MAC with this setup
The text was updated successfully, but these errors were encountered: