You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
punycode exports nothing if global AMD define is present #7224
In particular, this affects Url.prototype.parse() method, which has a dependency on punycode.toASCIII().
> require('url').parse('http://foo.bar/baz')
TypeError: punycode.toASCII is not a function
at Url.parse (url.js:312:32)
at Object.urlParse [as parse] (url.js:73:5)
at repl:1:16
at REPLServer.defaultEval (repl.js:272:27)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:441:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
at REPLServer.Interface._onLine (readline.js:224:10)
Activity
cjihrig commentedon Jun 8, 2016
Node core grabs punycode as is from https://github.com/bestiejs/punycode.js/. You might want to consider opening an issue there.
andyearnshaw commentedon Jun 8, 2016
I figured as much but thought it might be a good idea to track the problem on both projects.
mathiasbynens commentedon Jun 10, 2016
Patch that updates to Punycode.js v2.0.0, which only exports to
module.exports: #7267punycode: update to v2.0.0
punycode: update to v2.0.0