Skip to content
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

Error: Never. Requested .tsx length and result .d.ts length are not matched. #648

Open
moimael opened this issue Feb 22, 2023 · 1 comment

Comments

@moimael
Copy link

moimael commented Feb 22, 2023

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.

@kalvinsev
Copy link

Has this been resolved yet? Running into the same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants