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

Got Uncaught TypeError: Relative import path #13

Closed
cj-1010-1414 opened this issue Dec 26, 2023 · 2 comments
Closed

Got Uncaught TypeError: Relative import path #13

cj-1010-1414 opened this issue Dec 26, 2023 · 2 comments
Labels

Comments

@cj-1010-1414
Copy link

I test in shell, and got this message on import statement:

Uncaught TypeError: Relative import path "std/crypto/timing_safe_equal.ts" not prefixed with / or ./ or ../
at https://deno.land/x/scrypt@v4.3.0/mod.ts:18:33
at async :1:47

@oplik0 oplik0 closed this as completed in 304192e Dec 26, 2023
github-actions bot pushed a commit that referenced this issue Dec 26, 2023
## [4.3.1](v4.3.0...v4.3.1) (2023-12-26)

### Bug Fixes

* move from imports to deps.ts ([304192e](304192e)), closes [#13](#13)
Copy link

🎉 This issue has been resolved in version 4.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@oplik0
Copy link
Member

oplik0 commented Dec 26, 2023

Note that while it's now fixed in 4.3.1, you can also work around it by adding an import map for std/ (directly to deno.json or via separate json file then referenced via importMap in deno.json or --importmap cli flag):

{
    "imports": {
        "std/": "https://deno.land/std@0.210.0/"
    }
}

I just forgot about import maps not being a good idea for libraries without a build step that'd remove them, and the only other place I tested this code also had a std import map, so it seemed to work outside of this package too...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants