Skip to content

Issue when using browserify instructions on bitcoinjs.org #902

@mandelmonkey

Description

@mandelmonkey

I used the compile for browser instructions on bitcoinjs.org

and the follow error was shown

`as-MacBook-Pro:test a$ sudo npm install -g browserify uglify-js
/usr/local/bin/uglifyjs -> /usr/local/lib/node_modules/uglify-js/bin/uglifyjs
/usr/local/bin/browserify -> /usr/local/lib/node_modules/browserify/bin/cmd.js

  • uglify-js@3.1.1
  • browserify@14.4.0
    added 135 packages in 8.086s
    as-MacBook-Pro:test a$ browserify -r bitcoinjs-lib -s bitcoin | uglifyjs > bitcoinjs.min.js
    Parse error at 0:96,4
    let ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'
    ^
    ERROR: Unexpected token: name (ALPHABET)
    at JS_Parse_Error.get (eval at (/usr/local/lib/node_modules/uglify-js/tools/node.js:21:1), :79:23)
    at fatal (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:268:52)
    at run (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:225:9)
    at Socket. (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:163:9)
    at emitNone (events.js:110:20)
    at Socket.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1047:12)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions