nuxt-graphql-server
nuxt-graphql-server copied to clipboard
Cannot find module '#graphql/schema' or its corresponding type declarations
Many thanks to @tobiasdiez and @sduduzog for their contributions to this module! especially this #68
But there may still be some problems:
#graphql/resolver does not have this problem and can be correctly identified.
Is it possible that vscode cannot correctly identify the path to the .mjs file?
I'll look into this. I'll create a stackblitz repository to try and reproduce
I can reproduce the issue, but couldn't find a solution yet. Simply correcting the path in nuxt's tsconfig.json doesn't seem to work.
I've been failing to create a stackblitz repo for this so I haven't been able to do anything.
But this should only affect types and not the functionality?? I'll try again with a fresh project locally tonight
As a work around @awdr74100
Please create a declaration file anywhere in your project, e.g. temp.d.ts
and add the following
declare module '#graphql/schema' {
export const schema: string
}
@sduduzog thank you for your help!