aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Cannot import from npm.

Open Ross-Esmond opened this issue 2 years ago • 1 comments
trafficstars

I'm getting the error

npm package 'chance?ssr&v=lnoso8ht' does not exist

It looks like npm imports are broken in aleph, as aleph is adding a query string for deno that doesn't work with npm imports.

Code is

import Chance from "npm:chance";

Ross-Esmond avatar Oct 13 '23 16:10 Ross-Esmond

If no one else is getting this issue it should be closed. I tried installing from NPM outside of aleph.js but it failed until I disabled IPv6 on my OS. Disabling IPV6 in the terminal in which I run deno task dev doesn't help, however, so I'm not sure if the two issues are related.

Ross-Esmond avatar Oct 13 '23 17:10 Ross-Esmond