You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
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
The text was updated successfully, but these errors were encountered: