graphql-let
graphql-let copied to clipboard
Error: Never. Requested .tsx length and result .d.ts length are not matched.
Hi,
I'm trying to configure graphql-let
from my project but despite following the tutorial I can't get it to work.
This is my current config:
.graphql-let.yml
schema: "http://127.0.0.1:8000/graphql/"
documents:
- "src/**/*.graphql"
plugins:
- typescript-operations
- typescript-react-apollo
cacheDir: .cache
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
"exclude": [".cache"]
}
I can see that __types__.tsx
is generated in my .cache
directory but for some reason, even if the tsxFullPaths
are correct in the dts.js
file, my 2 other files never seem to generate a d.ts
.
If I console.log
tsxFullPaths
:
[
'/Users/username/Development/product-configurator-app/.cache/__types__.tsx',
'/Users/username/Development/product-configurator-app/.cache/src/admin/graphql/CategoriesQuery.graphql.tsx',
'/Users/username/Development/product-configurator-app/.cache/src/admin/graphql/CreateCategoryMutation.graphql.tsx'
]
No mater what I change, I always get this [ graphql-let ] Error: Never. Requested .tsx length and result .d.ts length are not matched.
Has this been resolved yet? Running into the same error message.