lamina
lamina copied to clipboard
Uncaught TypeError: type is not a function
I'm running into this error while using the current version of @react-three/fiber
(first affected version is 8.0.21
). For example, updating the dependencies in the complex-material
leads to the following:
yarn.lock
:
"@react-three/fiber@^8.0.3":
- version "8.0.9"
- resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-8.0.9.tgz#e231626dc923a7fefd1d47588ce2c5af09726213"
- integrity sha512-9hh3w0JjPwtoqRexCnAVSPK3kdjtTqpaeTDZOW2RHmfU0gSYaKijY+PtaiHjoym/2oTfa21mCmaROXXS2jDvvQ==
+ version "8.0.22"
+ resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-8.0.22.tgz#68c69ba7c0c4f5354562c5acfd5f0c9c64b9a64d"
+ integrity sha512-HkQR+SKm0Bi4qq9sxCV2rv2aXxEhWPcj52bLOCiW3WpF8sGJtmdc/pP4ih5gXwN7I5NMTa2eDeoSYkIPOwt1/g==
Error:
Uncaught TypeError: type is not a function
at attach (index-f1b43982.esm.js:194:1)
at switchInstance (index-f1b43982.esm.js:1024:1)
at commitUpdate (index-f1b43982.esm.js:1119:1)
at commitWork (react-reconciler.development.js:15871:1)
at commitMutationEffectsOnFiber (react-reconciler.development.js:16204:1)
at commitMutationEffects_complete (react-reconciler.development.js:16057:1)
at commitMutationEffects_begin (react-reconciler.development.js:16046:1)
at commitMutationEffects (react-reconciler.development.js:16016:1)
at commitRootImpl (react-reconciler.development.js:18932:1)
at commitRoot (react-reconciler.development.js:18811:1)
Line:
} else child.__r3f.previousAttach = type(parent, child);