Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

esbuild cannot resolve npm prefixed packages #838

Closed
ryanleecode opened this issue Apr 4, 2023 · 3 comments
Closed

esbuild cannot resolve npm prefixed packages #838

ryanleecode opened this issue Apr 4, 2023 · 3 comments
Assignees

Comments

@ryanleecode
Copy link
Contributor

ryanleecode commented Apr 4, 2023

running examples/sign/ed25519.eg.ts
✘ [ERROR] Do not know how to load path: npm:@noble/ed25519

    examples/sign/ed25519.eg.ts:11:20:
      11 │ import * as ed from "npm:@noble/ed25519"
         ╵                     ~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] Do not know how to load path: npm:@noble/hashes/sha512

    examples/sign/ed25519.eg.ts:12:23:
      12 │ import { sha512 } from "npm:@noble/hashes/sha512"
         ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~

running examples/paginate.eg.ts
error: Uncaught Error: Build failed with 2 errors:
examples/sign/ed25519.eg.ts:11:20: ERROR: Do not know how to load path: npm:@noble/ed25519
examples/sign/ed25519.eg.ts:12:23: ERROR: Do not know how to load path: npm:@noble/hashes/sha512
  let error = new Error(`${text}${summary}`);
              ^
    at failureErrorWithLog (https://deno.land/x/esbuild@v0.17.12/mod.js:1612:15)
    at https://deno.land/x/esbuild@v0.17.12/mod.js:1024:25
    at runOnEndCallbacks (https://deno.land/x/esbuild@v0.17.12/mod.js:1447:45)
    at buildResponseToResult (https://deno.land/x/esbuild@v0.17.12/mod.js:1022:7)
    at https://deno.land/x/esbuild@v0.17.12/mod.js:1051:16
    at responseCallbacks.<computed> (https://deno.land/x/esbuild@v0.17.12/mod.js:673:9)
    at handleIncomingPacket (https://deno.land/x/esbuild@v0.17.12/mod.js:728:9)
    at readFromStdout (https://deno.land/x/esbuild@v0.17.12/mod.js:649:7)
    at https://deno.land/x/esbuild@v0.17.12/mod.js:1898:11
@robocapi robocapi added this to Capi Apr 4, 2023
@tjjfvi
Copy link
Contributor

tjjfvi commented Apr 4, 2023

This example should probably be reverted to use the esm.sh version

@harrysolovay
Copy link
Contributor

I'll take this on

@harrysolovay harrysolovay self-assigned this Apr 4, 2023
@ryanleecode
Copy link
Contributor Author

Closed by #846

@github-project-automation github-project-automation bot moved this to Done in Capi Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants