-
Notifications
You must be signed in to change notification settings - Fork 936
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
debug no longer works with browserify #606
debug no longer works with browserify #606
Comments
Hi - which version exactly is being pulled down? |
Hi @Qix- , my team is experiencing the same exact issue. We are pulling |
I get that same error with versions 3.2.3, 3.2.4, and 4.0.0 |
Interesting, I'll take a look - give me a moment. To be clear, you shouldn't be pulling 3.2.x at all - should either be 3.1.0 or 4.0.0. the 3.2.x range was deprecated and only existed to help users affected at the time of the incident. Pulling debug from npm should act as though the 3.2 range does not exist. |
@Qix- maybe it is that we are using |
the same issue for me with debug@4.0.0 |
Does the code on unpkg match the code in the https://unpkg.com/debug@4.0.0/dist/debug.js If so, then there's no reason this shouldn't work. This is the same invocation of browserify as before, just with babel thrown on to it (which shouldn't affect anything). Could you also give more information as to how you're using |
I can't help fix this without some reproduction steps. |
Deep requiring into a specific file in the package from an unpkg url is not exactly a "works in the browser" test that feels like it was made in good faith. Here's a barebones "try debug with browserify" that breaks (assumes you have npm@6 so that npx is a command you can run): $ npm init -y
$ npm install debug@latest browserify@latest
$ echo "var log = require('debug')('example')" >example.js
$ npx browserify example.js
|
Feel free to submit a PR that automates this testing. The release wasn't made in "bad faith", if that's what you're suggesting. I'm one person managing a package that is downloaded several million times per day - all I can do is help fix problems where they arise. The alternative is to not release ever again, which solves nothing. Thank you for the reproduction steps - I can confirm they reproduce. |
Unpkg uses the I'll revert PR incoming. |
Some input on #607 would be appreciated. You can test this version by running |
Could this be included in a |
@gztomas sure. |
Released as Even though this issue is closed let me know here if that doesn't solve it. |
Working for us! Thanks for the awesome support! |
No problem, thank you for following up @gztomas |
Back in business, @Qix- ! Thanks for your hard work! I do not envy your position these past several hours. What a nightmare, but well met! |
Thank you @ThomasGHenry, sorry for the trouble :) |
Hi, I found this fix broke Angular/Webpack. It worked immediately if I edited the file node_modules/aws-appsync/debug/package.json and turned browser back to "./dist/debug.js" as webpack used that file instead of src/browser.js for a browser. |
Any version of debug that I use past version 3.1.0 gives this error when trying to browserify code that includes this module
There was a mention in #603 about a browserify incompatibility, but it doesn't appear to be the same issue.
The text was updated successfully, but these errors were encountered: