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

pathlib-js fails with "Object is not a constructor" #3383

Closed
vedantroy opened this issue Jun 22, 2023 · 0 comments · Fixed by #3393
Closed

pathlib-js fails with "Object is not a constructor" #3383

vedantroy opened this issue Jun 22, 2023 · 0 comments · Fixed by #3393
Labels
bug Something isn't working

Comments

@vedantroy
Copy link

What version of Bun is running?

0.6.9

What platform is your computer?

Linux 5.16.10-051610-generic x86_64 x86_64

What steps can reproduce the bug?

Install this: pathlib-js.

Run this:

import Path from "pathlib-js"

console.log(new Path("foo"))

What is the expected behavior?

It works. (It works with node / tsx).

What do you see instead?

1 |
2 | console.log(new Path("foo"));
^
TypeError: Object is not a constructor (evaluating 'new Path("foo")')
at /home/vedantroy/Desktop/llms/gensite/foo.ts:3:12

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant