ES6/import with JavaScript template? #8357
Labels
kind/bug
Some behavior is incorrect or out of spec
resolution/duplicate
This issue is a duplicate of another issue
Hello!
Issue details
Is it possible to use ES6/import with JavaScript (not TypeScript)? I have a sample repo using the following steps: https://github.com/leviwolfe/import-pulumi
Steps to reproduce
pulumi new javascript
const pulumi = require("@pulumi/pulumi");
intoimport pulumi from "@pulumi/pulumi";
"type": "module"
to package.jsonExpected: The
pulumi preview
command to display a preview.Actual: The
pulumi preview
command displays the following error:The text was updated successfully, but these errors were encountered: