Skip to content

Unexpected token (632:27) while parsing. When I use the command to generate the anchor-browserified.js #1

@OniMock

Description

@OniMock

Hello,
Thanks for the project

When I run the command browserify anchor-input.js --standalone BrowserScore -p esmify --exclude process -o anchor-browserified.js

I get this error:

SyntaxError: Unexpected token (632:27) while parsing C:\myProject\SageLabs\node_modules@solana\web3.js\lib\index.browser.cjs.js while parsing file: C:\myProject\SageLabs\node_modules@solana\web3.js\lib\index.browser.cjs.js
at DestroyableTransform.end [as _flush] (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\insert-module-globals\index.js:114:21)
at DestroyableTransform.prefinish (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib_stream_transform.js:138:10)
at DestroyableTransform.emit (node:events:514:28)
at prefinish (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib_stream_writable.js:619:14)
at finishMaybe (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib_stream_writable.js:627:5)
at endWritable (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib_stream_writable.js:638:3)
at Writable.end (C:\Users\onimock\AppData\Roaming\npm\node_modules\browserify\node_modules\readable-stream\lib_stream_writable.js:594:22)
at DuplexWrapper.onend (C:\myProject\SageLabs\node_modules\readable-stream\lib_stream_readable.js:577:10)
at Object.onceWrapper (node:events:628:28)
at DuplexWrapper.emit (node:events:526:35)
at endReadableNT (C:\myProject\SageLabs\node_modules\readable-stream\lib_stream_readable.js:1010:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Do you have any idea what it could be?

I have already installed all dependencies, and create the files anchor-input.js and buffer-input.js
The file bs58.bundle.js I managed to generate it without any problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions