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.
little-cartoon-10569
10/01/2021, 4:37 AM
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?
most-lighter-95902
10/01/2021, 3:09 PM
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
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.