jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

Importmap Generator tries to import paths that don't seem to exist #306

Closed trusktr closed 11 months ago

trusktr commented 11 months ago

https://generator.jspm.io/#U21nYGBkDM0rySzJSU1hyCnNTXUw0DPWM9BNzCnISNQzsgAAYTlAdCIA

GET https://esm.sh/stable/solid-js@1.4.8/es2022/package.json 404 (Not Found)
GET https://esm.sh/stable/solid-js@1.4.8/X-ZS8q/es2022/package.json 404 (Not Found)
GET https://esm.sh/stable/solid-js@1.4.8/X-ZS8q/package.json 404 (Not Found)
GET https://esm.sh/stable/solid-js@1.4.8/package.json 404 (Not Found)

ReferenceError: url is not defined
    at getESModuleShimsScript (api.js?1:48:47)
    at async ImportMapApp.renderMap (mapapp.js?1:218:125)

But this exists:

https://esm.sh/solid-js@1.4.8/package.json
guybedford commented 11 months ago

Yes the generator will check for package.json files to see if they contain resolution information. The 404 is therefore important to the resolution algorithm itself.