-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
8.16.5 has breaking types changes #3270
Labels
Comments
I can replicate this on {
"compilerOptions": {
"baseUrl": ".",
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
],
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"postcss.config.js",
"next.config.mjs"
],
"exclude": [
"node_modules"
]
} Setting Downgrading to v8.16.4 resolves the typing issue. |
Installing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally titled: "Property 'div' does not exist on type 'JSX.IntrinsicElements'."
Version 8.16.5 has breaking changes and brings a batch of TS errors like:
Property 'div' does not exist on type 'JSX.IntrinsicElements'.
Type '{ dpr: number; camera: { fov: number; near: number; far: number; zoom: number; }; gl: { antialias: false; powerPreference: string; }; frameloop: Frameloop; }' is not assignable to type 'Props & RefAttributes<HTMLCanvasElement>'.
Property 'children' is missing in type '{ dpr: number; camera: { fov: number; near: number; far: number; zoom: number; }; gl: { antialias: false; powerPreference: string; }; frameloop: Frameloop; }' but required in type 'CanvasProps'.
"three": "0.164.1",
"@react-three/fiber": "8.16.6",
"react": "18.0.0",
"react-dom": "18.0.0",
"@types/react": "18.0.18",
"@types/react-dom": "18.0.6",
"@types/three": "0.164.0",
How to deal with that?
The text was updated successfully, but these errors were encountered: