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

deno vendor fails for recent versions of the std library #22889

Closed
boywithkeyboard opened this issue Mar 12, 2024 · 2 comments
Closed

deno vendor fails for recent versions of the std library #22889

boywithkeyboard opened this issue Mar 12, 2024 · 2 comments
Labels
bug Something isn't working correctly

Comments

@boywithkeyboard
Copy link

boywithkeyboard commented Mar 12, 2024

Describe the bug

I tried to deno vendor a module which imports a submodule of the std library and received the following error.

error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
  Specifier: https://deno.land/std@0.219.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.d.mts
    at https://deno.land/std@0.219.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.mjs:5:22

The console error redirects me to the following line of code:

/// <reference types="./deno_std_wasm_crypto.generated.d.mts" />

So I assume it's an issue with the .d.mts extension or something?

Expected behavior

Should throw no error.

Environment

  • deno version: 1.41.2
  • std version: 0.219.0
@boywithkeyboard boywithkeyboard added bug Something isn't working correctly needs triage labels Mar 12, 2024
@kt3k kt3k transferred this issue from denoland/deno_std Mar 13, 2024
@dsherret
Copy link
Member

Investigated. Cause is in the deno.land/x registry. Opened: denoland/deno_registry2#344

@iuioiua
Copy link
Collaborator

iuioiua commented May 3, 2024

@boywithkeyboard, does the same issue occur when you use jsr:@std/crypto@0.224.0 as the import specifier instead of https://deno.land/std@0.219.0/crypto/mod.ts in the module you're trying to vendor (if possible to test in your case)?

@boywithkeyboard boywithkeyboard closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants