Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Uncaught TypeError: type is not a function #37

Open
tothandras opened this issue Jun 10, 2022 · 0 comments
Open

Uncaught TypeError: type is not a function #37

tothandras opened this issue Jun 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tothandras
Copy link

tothandras commented Jun 10, 2022

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);
@FarazzShaikh FarazzShaikh added the bug Something isn't working label Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants