You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be construed as jspm(the default --from) issue. But most of bin/importmap pin @zxing/browser will miss all the relative dependency that jspm use.
This makes importmap essentially unusable for vast variety of packages. May be it's time to change the default --from to something that works more reliably.
Just my 2 cents.
The text was updated successfully, but these errors were encountered:
Just for those who stumble upon this in the future. Here is a workaround-ish.
pin "@zxing/browser", to: "https://ga.jspm.io/npm:@zxing/[email protected]/esm/index.js"
pin "@zxing/library", to: "https://ga.jspm.io/npm:@zxing/[email protected]/esm/index.js"
pin "ts-custom-error", to: "https://ga.jspm.io/npm:[email protected]/dist/custom-error.mjs"
How did I figure this out ... go to the generator, put in package name, copy the URL in import map + everything in scope and flatten it here. It's not locally loaded but at least it works since all the relative path it uses will be correctly resolved to jspm. This manual workaround should work for any package.
This could be construed as jspm(the default --from) issue. But most of
bin/importmap pin @zxing/browser
will miss all the relative dependency that jspm use.This is example of https://ga.jspm.io/npm:@zxing/[email protected]/esm/index.js which try to load relative path.
This makes importmap essentially unusable for vast variety of packages. May be it's time to change the default --from to something that works more reliably.
Just my 2 cents.
The text was updated successfully, but these errors were encountered: