browserify / browserify-handbook

how to build modular applications with browserify
Other
4.58k stars 292 forks source link

TypeError: punycode.toASCII is not a function /dist/bundle.js:30114 #86

Closed billwagner3 closed 7 years ago

billwagner3 commented 7 years ago

Hi Guys,

I am new to browserify, and in trying to implement in my local project, I am getting this error after I run my build script in my browser output. I tested my install with a simple button click alert and that worked fine, but when I tried to implement a twitter api (which works perfectly in PhpStorm console), that's when the error started appearing. There's nothing on SO on this issue, and all I could find were problems with AWS, having nothing to do with Browserify.

Here's my main.js file:

main.txt

I am running this locally inside the Symphony3 framework.

billwagner3 commented 7 years ago

It was an easy fix luckily-- I needed to move the src ref to just below the jquery.js ref.