jspm / registry

The jspm registry and package.json override service
https://jspm.io
229 stars 256 forks source link

0.17.0-beta.28: JSDOM import fails #970

Closed m-a-r-c-e-l-i-n-o closed 7 years ago

m-a-r-c-e-l-i-n-o commented 7 years ago

JSPM fails to import jsdom because it doesn't seem to realize (appropriately so) that one of its dependencies ("canvas", in this case) is conditional and fatally complains that it is not found. I don't actually need the dependency, I just want jspm (or likely SystemJS, in this case) to ignore it. Alternatively, installing the dependency causes another issue within the dependency itself, but likely not worth investigating, for now. Any guidance on how to resolve this would be highly appreciated.

guybedford commented 7 years ago

You can avoid this with:

System.config({
  map: {
    canvas: '@empty'
  }
});
m-a-r-c-e-l-i-n-o commented 7 years ago

Not sure how I missed that in the docs, thank you, guy.