nw version 0.25.2 ,how to use es6?

62 views
Skip to first unread message

john.zhuzhiyuan

unread,
Sep 24, 2017, 10:58:13 PM9/24/17
to nw.js

i set package.json "js-flags": "--harmony --harmony_modules --harmony_classes"

use es6 import Test from './test';

SyntaxError: Unexpected identifier
why?

john.zhuzhiyuan

unread,
Sep 24, 2017, 11:30:49 PM9/24/17
to nw.js
I don't add js-flags SyntaxError too.

在 2017年9月25日星期一 UTC+8上午10:58:13,john.zhuzhiyuan写道:

Encuentro con JESUS 2021

unread,
Jul 20, 2023, 10:51:04 PM7/20/23
to nw.js
hola, ¿Pudiste resolverlo? Estamos igual. :(

Brian Bothwell

unread,
Jul 21, 2023, 7:53:17 AM7/21/23
to nw.js
ESM doesn't even work in the latest build of NW.js. Very unlikely that it's going to work in 0.25.2. Unfortunately, we're all stuck with CJS for NW.js (and Electron) apps.

- Brian


--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nwjs-general/fd1cd9f9-1189-43de-bcc5-49b953c42621n%40googlegroups.com.

Encuentro con JESUS 2021

unread,
Jul 28, 2023, 8:38:29 AM7/28/23
to nw.js
Espero tener una solución de parte del creador de nw.js y esté en una futura versión. 
Saludos y bendiciones. 
Reply all
Reply to author
Forward
0 new messages