bytenode-webpack-plugin icon indicating copy to clipboard operation
bytenode-webpack-plugin copied to clipboard

Unexpected token 'export' Electronjs ByteNode

Open mcjambi opened this issue 1 year ago • 2 comments

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"

mcjambi avatar Mar 17 '23 03:03 mcjambi

@mcjambi can you make a reproduction repository so I can try to fix it?

herberttn avatar Mar 23 '23 17:03 herberttn

@mcjambi does this still happen? If so, can you create a reproduction repo?

herberttn avatar Jun 13 '23 22:06 herberttn