-
Notifications
You must be signed in to change notification settings - Fork 1k
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
The type ArticlesQuery
does not exist in types/graphql
#6078
Comments
@noire-munich is there some workaround / temporary re-declarations to get me going? It is hard to believe that typescript development is dead at this moment? |
Since my original write up I found a lot easier proof of this bug. type This of course has consequences for each and every Redwood TypeScript application |
You just have have to run This is mentioned in the tutorial a few lines above. Any thoughts on how we could make this more obvious for you within the tutorial?
I don't believe the Prisma error actually has any consequences on Redwood applications, it's a bug in the generated types but actually doesn't break anything within your application. This is being tracked in #6096, and will close this issue as duplicate. |
ArticlesQuery
does not exist in types/grapqlArticlesQuery
does not exist in types/graphql
ArticlesQuery
does not exist in types/graphqlArticlesQuery
does not exist in types/graphql
What's not working?
The tutorial section Getting Dynamic defines the code for the file web/src/components/ArticlesCell/ArticlesCell.tsx. TS version as:
However the
ArticlesQuery
type does not exist intypes/graphql
as shown below:Note that the file
types/graphql.d.ts
does not compile and this is the real problem IMHOHow do we reproduce the bug?
Reproducing the problem requires typing the whole tutorial (the TypeScript) version up to (including) section https://redwoodjs.com/docs/tutorial/chapter2/cells#our-first-cell as this version does not exist anywhere (to the best of my knowledge).
A better alternative is to verify that
graphql.d.ts
does not export typeArticlesQuery
.Vscode claims that there are two additional problems in the
graphql.d.ts
file, as shown belowProblem 1

Problem 2

What's your environment? (If it applies)
nik$ yarn rw info System: OS: macOS 12.4 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.1 - /private/var/folders/y3/n2p741pj7vq9ckj9jrmlbp6m0000gn/T/xfs-ed49c479/node Yarn: 3.2.1 - /private/var/folders/y3/n2p741pj7vq9ckj9jrmlbp6m0000gn/T/xfs-ed49c479/yarn Databases: SQLite: 3.37.0 - /usr/bin/sqlite3 Browsers: Chrome: 103.0.5060.134 Firefox: 102.0.1 Safari: 15.5 npmPackages: @redwoodjs/core: 2.2.0 => 2.2.0
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: