-
-
Notifications
You must be signed in to change notification settings - Fork 256
Importing Superagent fails #203
Comments
If you edit In terms of a fix, I can add an override to make this work, but it won't be ideal as it involves locking down the version of stream. Will put some thought to a better solution. |
Note there is a maximum stack sized reached error in the browser, although this is non-critical. Also working on a mid term fix for that. |
Thanks for the quick reply. Now I'm getting a whole bunch of new errors w/
and
because the passed URL is missing the double slash. |
@psolbach do you have a code example to cause that error? |
But still the same
|
It was definitely working ok for me - which version of jspm are you using? I assume you're running in the browser? |
Version 0.13.4; in the Browser. It's literally the getting-started setup with the single |
I can mitigate the errors except Maximum stack size and |
@psolbach perhaps try |
Finally managed to replicate this - was running on files here which for some reason was not triggering the fs.readFileSync! Unfortunately don't have much more time to look into this myself right now, so will leave this up until there is more pressure. |
Hey thanks for your prompt help. Will try to isolate that rogue path as well. |
I'm having similar issues working with other HTTP libraries in the browser. I'm assuming they're related but would be glad to create new issues.
Results in very similar errors as superagent.
Result:
|
The specific issue is that for some reason these libraries are triggering the use of |
FWIW, I had the same superagent problems with systemjs, and have tried axiom instead and it is working well so far... in reference to @activelogix comment that other http libs are having the same issue. Perhaps there is something there that helps uncover why one works and the other doesn't. Or for those trying to stay the jspm course, at least this helps point to an alternative to keep moving forward for now. |
i'm running into the same thing with a variety of ajax libs too (on windows) |
Please post the name of the lib as a separate issue in this repo. These bugs are valuable. |
Correction, I'm now using axios (https://github.com/mzabriskie/axios) as an AJAX lib without any issues thus far with SystemJS. It is also an isomorphic library, so just being isomorphic doesn't seem to be causing these issues... must be something specific superagent (and supposedly others) are doing. |
Fixed and working from #254, thanks to @danharper. |
Quoting the documentation: |
You're right - the registry and format property are not necessary in this override. |
My PR was originally pointing at GitHub so I added in |
Course not! Just trying to get the hang of this. |
Tried all kinds of variations, bumping requirements to same edge versions. No dice.
When issuing
import Request from 'superagent';
I get:What am I doing wrong here?
The text was updated successfully, but these errors were encountered: