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

Uncaught TypeError: import_tweakpane.default is not a constructor #51

Open
justin-hackin opened this issue Sep 19, 2022 · 3 comments
Open

Comments

@justin-hackin
Copy link

This library throws an uncaught exception as in the title. The symbol Tweakpane is undefined when attempting to call this constructor. I looked a tweakpane module and it doesn't seem to export a default. I checked to make sure the peerDeps match. I reproduced this issue in a couple TS projects. I'm not providing a reproduction because I'm not sure if this is maintained given there are several stale pending PRs . Intent here is to warn other developers.

@justin-hackin
Copy link
Author

Oh, it's easy to reproduce with codesandbox: https://codesandbox.io/s/use-tweaks-example-forked-blovu3?file=/package.json

@justin-hackin
Copy link
Author

I see in the current version 0.3.2-alpha.0 there is a fix. However, that's not the version that got installed when I installed the package without a version spec recently.

@ahalp0217
Copy link

Thank you! Installing that version fixed it for me.

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

No branches or pull requests

2 participants