Skip to content
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

bundle.js:1 Uncaught SyntaxError: Identifier 'Buffer' has already been declared #8

Open
CTTeo opened this issue Jan 4, 2019 · 1 comment

Comments

@CTTeo
Copy link

CTTeo commented Jan 4, 2019

Hi

I tried to rebuild the example using these commands
npm install
npm run-script build

It failed with the error "Cannot find module 'babel-runtime/regenerator" which I fixed by npm install --save-dev babel-runtime

Afterwhich, I run the example through a python http server python3 -m http.server and gotten the this error on the browser console.
Uncaught SyntaxError: Identifier 'Buffer' has already been declared
at s (bundle.js:1)
at bundle.js:1
at Object. (bundle.js:4)
at Object.1.buffer (bundle.js:355)
at s (bundle.js:1)
at e (bundle.js:1)
at bundle.js:1

BTW, if I use the existing bundle.js (and not rebuild it) - it works.

@hewigovens
Copy link

I had the same issue, hope this commit hewigovens@70e6301 helps and I tweak it a bit for mobile phones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants