-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
npm-compat: ts-results issues #22806
Comments
The exact same error happens in Node:
It's because ts-results uses the tslib package, but doesn't define it as a dependency (which it should). This bug was fixed in this PR, but they never did a release: vultix/ts-results#38 To get around this, you can use a node_modules directory and also import the tslib package. That will cause tslib to exist in the node_modules folder, which will allow ts-results to work properly. |
I see thanks |
See also https://jsr.io/@oxi/result |
Version: Deno 1.41.2
error
also note the npm package tries to read the node_modules dir when used with npm:, while using it from esm doesn't do this (so no need to give read all permission)
The text was updated successfully, but these errors were encountered: