10/01/2021, 4:12 AM
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...
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!
10/03/2021, 7:19 PM
If the only problem is that you can't use import, check your packages.json. Maybe you have
(or any value that includes es6).