Closed kuechlerm closed 8 years ago
I'm not a JSPM expert either, but thanks for reporting this. I'll try to look into when I get a chance (or if you can fix it and send a PR we can do that too).
I played a bit around and have a clearer picture now - or so I hope: JSPM seems to pick up the file that is specified in the "main" property in package.json, thus ./oidc-token-manager.js is used.
I can think of 3 solutions now:
IdentityModel/oidc-token-manager/dist/oidc-token-manager
(no changes to the repo necessary)For the moment, I go with option no. 3, but it's a hack.
Was this working out? If not, feel free to send a PR with a better fix.
When using JSPM, I get this error:
Uncaught ReferenceError: DefaultHttpRequest is not defined
The error is caused by Line 17 in oidc-token-manager.js
var _httpRequest = new DefaultHttpRequest();
I checked the folder and found that oidc-token-manager@0.1.2.js is not pointing to dist/oidc-token-manager.js. I changed the path, now it seems to be working.
I am not an expert of JSPM... is this helpful?