Skip to content

Unexpected token 'export' Electronjs ByteNode #25

@mcjambi

Description

@mcjambi

I meet a very new error:

SyntaxError: Unexpected token 'export'
at new Script (node:vm:100:7)
at Object.compileCode (C:\GitHub... (remove) ...\node_modules\bytenode\lib\index.js:28:18)

It is still working but error throw to terminal while i am building production.

my Typescript config like this:

"module": "CommonJS",
"target": "es2022"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions