-
Notifications
You must be signed in to change notification settings - Fork 26
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: BTree is not a constructor #36
Comments
How are you importing it?
Let me know how it goes. |
I hit the same problem with bun.sh. Here a repo with reproduction: |
Please try the code above and let me know how it goes. |
@qwertie Thanks for the response! This works:
I have this issue with a 3rd party lib (https://github.com/blinkdb-js/blinkdb), would it be possible to make it work in the expected way? Is this workaround necessary to keep the ES5 compatibility? And if there is no other way, maybe this should be documented in the Readme. Cheers and have a great Sunday! |
The workaround is problematic in that sense, that it would be not compatible with |
Unfortunately I don't understand the cause of the problem, and I am generally too busy to investigate, so it is unlikely that I will find time to figure out the problem. It appears that enabling esnext in TypeScript options is problematic? Maybe if BTree were recompiled in esnext mode, it would work properly, but we can't do that, because we need to maintain es5 compatibility. |
const tree = new BTree()
get error
Uncaught TypeError: BTree is not a constructor
The text was updated successfully, but these errors were encountered: