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

All Shapes - Type 'xxx' is missing the following properties from type #1343

Open
OldManMeta opened this issue Mar 14, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@OldManMeta
Copy link

Having a lot of issues with drei specific components at the moment. In particular the shapes

Several of them keep showing in my solution as types missing properties.

I've cleaned out node_modules, rebooted the whole 9 yards - to no avail.

I have checked on codesandbox and it appears to work correctly with the same versions that I am using (latest of r3f, drei etc)

I am almost certain this is a local issue of mine, but just in case anyone else is seeing this with the current build?

Is there any resolution that I can apply to fix this, or steps that folks have taken in the past to counter it as I saw a while back that it was an issue, but I was not able to ascertain the fix.

"dependencies": {
"@aws-sdk/client-s3": "^3.282.0",
"@emotion/react": "11.10.4",
"@emotion/styled": "11.10.4",
"@mui/icons-material": "5.10.3",
"@mui/lab": "5.0.0-alpha.96",
"@mui/material": "5.10.3",
"@react-spring/web": "^9.6.1",
"@react-three/drei": "^9.57.3",
"@react-three/fiber": "^8.12.0",
"@react-three/rapier": "^0.13.2",
"@types/react": "18.0.18",
"@types/react-dom": "18.0.6",
"@types/three": "^0.146.0",
"electron": "^18.0.3",
"framer-motion": "^6.3.0",
"leva": "0.9.34",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.29.0",
"react-query": "^3.38.0",
"react-router-dom": "^6.3.0",
"react-use-websocket": "^4.3.1",
"rxjs": "7.5.6",
"three": "^0.147.0",
"three-stdlib": "^2.21.8"
},
"devDependencies": {
"css-loader": "^6.7.1",
"electron-packager": "^15.5.1",
"file-loader": "^6.2.0",
"filemanager-webpack-plugin": "^7.0.0",
"html-webpack-plugin": "^5.5.0",
"source-map-loader": "^3.0.1",
"ts-loader": "^9.2.8",
"typescript": "^4.6.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.11.1"
}
}

@OldManMeta OldManMeta added the bug Something isn't working label Mar 14, 2023
@AlexanderMoroz
Copy link

Faced same issue after updating to latest @react-three/fiber and @react-three/drei

currently

    "@react-three/drei": "^9.57.3",
    "@react-three/fiber": "^8.12.0",

it was working on well with:

    "@react-three/drei": "^9.56.4",
    "@react-three/fiber": "^8.10.1",

Thanks in advance

@queckezz
Copy link

@OldManMeta My types where fixed by updating from @types/three@0.147.0 (like you have) to @types/three@0.150.1. Maybe that'll help you aswell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants