question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.3.0] module import issue from esm.sh

See original GitHub issue
$ deno install -A -f --location=http://localhost -n aleph https://deno.land/x/aleph@0.3.0-alpha.2/cli.ts
$ aleph dev
Download https://deno.land/x/aleph@0.3.0-alpha.2/cli/dev.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/server/mod.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/server/server.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/server/app.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/framework/core/routing.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/compiler/mod.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/framework/core/events.ts
Download https://deno.land/x/aleph@0.3.0-alpha.2/compiler/dist/wasm.js
Download https://deno.land/x/aleph@0.3.0-alpha.2/compiler/dist/wasm-checksum.js
Download https://deno.land/x/aleph@0.3.0-alpha.2/compiler/dist/wasm-pack.js
Check https://deno.land/x/aleph@0.3.0-alpha.2/cli/dev.ts
INFO Aleph server config loaded from aleph.config.js
INFO Download https://deno.land/x/aleph@v0.3.0-alpha.2/mod.ts
INFO Force download from https://deno.land/x/aleph@v0.3.0-alpha.2/mod.ts
ERROR swc: Expected \';\', \'}\' or <eof> at https://deno.land/x/aleph@v0.3.0-alpha.2/mod.ts:1:4

Notice the missing v (for version) in the download link. This is added in in the force download causing it to access a 404.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
FallingSnowcommented, Feb 4, 2021

Safe to say the original issue is fixed. Thank you!

1reaction
FallingSnowcommented, Feb 4, 2021

This is aleph init hello with a couple lines added to app.tsx. It produces a similar error. https://github.com/FallingSnow/aleph.js-issue-118

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · ije/esm.sh - GitHub
A fast, global content delivery network for ES Modules. - Issues ... Failed to import - https://esm.sh/jsdom@19.0.0?no-check&pin=v64 browser.
Read more >
ESM.sh
A fast, global content delivery network for NPM packages with ES6 module syntax. ... import React from "https://esm.sh/react@17" // 17.0.2 import React from ......
Read more >
Using Node.js Packages Via CDNs | Manual - Deno
Most developers currently use npm modules in Deno by importing them using one of many CDNs. You can reference the CDN URL in...
Read more >
2 ESM interoperability issue with Node + Typescript + Webpack
Just to clarify, I have 2 ESM modules, esm1 and esm2 written in Typescript. I compile them into es6 module with TSC. Moreover...
Read more >
Tweets with replies by Aleph.js (@alephjs) / Twitter
this let you import some packages like @notionhq/client without pass ... GitHub - ije/esm.sh: A fast, global content delivery network for ES Modules....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found