Hi everyone - I hope this is the right channel for this question but I’m using javascript, not typescript and it looks like es6 is not supported? Any suggestions on how to enable es6 in a js project?
l
little-cartoon-10569
10/01/2021, 4:35 AM
I think that's based on the version of node.js you're using? If you're using node12 (before 12.10) or earlier, it won't work. But that's not a Pulumi restriction.
By default, Pulumi uses es2016, which (iirc) is a superset of es6? I'm not sure, I'm a bit of a js newbie...
m
most-lighter-95902
10/01/2021, 3:08 PM
Hmm I’m using node v14.17.4 so it should be possible to use import?
I’ll play around with it a bit more - thanks!
l
little-cartoon-10569
10/03/2021, 7:19 PM
If the only problem is that you can't use import, check your packages.json. Maybe you have