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

Kubb working only with react 18 #1219

Closed
RabbitShare opened this issue Sep 17, 2024 · 3 comments
Closed

Kubb working only with react 18 #1219

RabbitShare opened this issue Sep 17, 2024 · 3 comments
Labels
docs Improvements or additions to documentation

Comments

@RabbitShare
Copy link

What is the type of issue?

Documentation is missing

What is the issue?

Environment section does not contain React version restriction
image

In react 17 error
image

Where did you find it?

No response

@RabbitShare RabbitShare added the docs Improvements or additions to documentation label Sep 17, 2024
@stijnvanhulle
Copy link
Collaborator

React is part of Kubb so normally you dont need to specify a React version. Which version of Kubb are you using and can you provide me a simple playground/example?

@RabbitShare
Copy link
Author

I found problem facebook/react#20235 (comment). It's not a kubb problem

@RabbitShare
Copy link
Author

With this tsconfig working great

{
  "compilerOptions": {
    "target": "ES2022",
    "lib": ["ES2023"],
    "module": "ESNext",
    "skipLibCheck": true,
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true,
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true
  },
  "include": ["kubb.config.ts"]
}

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

No branches or pull requests

2 participants