-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require is not defined on vanilla js #1743
Require is not defined on vanilla js #1743
Comments
Same here. Using either the jsdelivr.net or unpkg.com URLs. No code change on our end recently. Browser: Firefox 105.0.1 |
Note you can get around this by specifically requesting v8.0.0 using: <script src="https://cdn.jsdelivr.net/npm/superagent@8.0.0"></script> |
Still determining the root cause of this |
v8.0.2 released - can you please test? @fcastellanosKreios @lcoffin https://github.com/visionmedia/superagent/releases/tag/v8.0.2 |
I'm still seeing the error with either of these URLs: https://cdn.jsdelivr.net/npm/superagent @8.0.0 works fine still. |
Note that I see this bit of code in 8.0.1 and 8.0.2 that I don't see in 8.0.0:
That's the only reference to require() anywhere in the code that I get. |
It must be something to do with babel or |
tinyify v3.0.0 to v3.1.0 was changed here 1fc9682#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L69-R68 which could be the culprit - the minor version change was common-shakeify bumping major versions here browserify/tinyify@1b0c002 Though this doesn't seem like it'd be the issue |
Deprecated v8.0.1 and v8.0.2 in the interim - help would be appreciated in determining the underlying cause here. It has to do with creating the |
Please release |
@titanism Have you managed to find the underlying issue? Asking because |
@titanism After some investigation regarding tinyify and common-shakeify (you mentioned them above), it seems that 5 days ago there were version bumps for both of them: It looks like the latter has some related fixes to exports and invalid syntax, which might be the culprit and the fix: Can you please check and see if updating to |
Should fix ladjs#1743
v8.0.3 released to npm 🎉 !! the issue was tinyify, which bumped common-shakeify, and has a few underlying issues that need resolved before we can upgrade it. apologies for the delay, this wasn't easy to track down. https://github.com/visionmedia/superagent/releases/tag/v8.0.3 |
This appears to be an issue again as of v10. superagent@10.0.1:1
|
v10.0.2 released with https://github.com/ladjs/superagent/releases/tag/v10.0.2 |
Hi!
I'm getting an error while loading the latest version from the vanilla js browser script (https://cdn.jsdelivr.net/npm/superagent):
version: 8.0.1
browser: Edge 105.0.1343.53, Chromium 105.0.5195.125
Console output:
The text was updated successfully, but these errors were encountered: