-
Notifications
You must be signed in to change notification settings - Fork 55
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
TypeError: g is not a constructor #87
Comments
can you share a reproducible example? threw up a bare-bones test here - been unable to repro myself https://github.com/hack-dance/instructor-stream-test/tree/main |
I'm using
The bun way works for me though so I'll just use that |
ok so - bun should just work - but I dug in a little and tested with both ts-node and TSX - they both have problems figuring out how to resolve es modules further upstream for some reason - I updated those upstream deps to include exports and was a bit more explicit and it now seems to work fine with whatever ts-node, TSX, bun, build + node, whatever also updating this package to be a bit more explicit as well so we don't run into anything like this again. Thanks for making the issue! |
Just npm installed the latest version and tried running the extract user streaming example (https://github.com/instructor-ai/instructor-js/blob/99af6d1c8135b5e0be80dbbaddcf9e2cffd5230d/examples/extract_user_stream/index.ts). Got this very cryptic error:
Could use some help...and source maps ha.
The text was updated successfully, but these errors were encountered: