pulumi / pulumi-ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Cannot use import statement outside a module

d3287t328 opened this issue · comments

What happened?

I triggered this this way:

> what would a minimal eks cluster in python look like?
SyntaxError: Cannot use import statement outside a module
    at requireFromString (/home/a/code/pulumi-ai/src/index.ts:71:14)
    at PulumiAI.<anonymous> (/home/a/code/pulumi-ai/src/index.ts:311:47)
    at Generator.next (<anonymous>)
    at /home/a/code/pulumi-ai/lib/index.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/a/code/pulumi-ai/lib/index.js:4:12)
    at Object.stack.workspace.program [as init] (/home/a/code/pulumi-ai/src/index.ts:311:46)
    at Stack.<anonymous> (/home/a/code/pulumi-ai/node_modules/@pulumi/runtime/stack.ts:76:39)
    at Generator.next (<anonymous>)
    at fulfilled (/home/a/code/pulumi-ai/node_modules/@pulumi/pulumi/runtime/stack.js:18:58)

Expected Behavior

Not that.

Steps to reproduce

Try it yourself.

Output of pulumi about

a@fedora ~/code/pulumi-ai $ pulumi about
CLI          
Version      3.73.0
Go Version   go1.20.5
Go Compiler  gc

Host     
OS       fedora
Version  38
Arch     x86_64

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/d3287t328
User           d3287t328
Organizations  d3287t328

Pulumi locates its logs in /tmp by default
warning: Failed to read project: no Pulumi.yaml project file found (searching upwards from /home/a/code/pulumi-ai). If you have not created a project yet, use `pulumi new` to do so: no project file found
warning: Failed to get information about the current stack: no Pulumi.yaml project file found (searching upwards from /home/a/code/pulumi-ai). If you have not created a project yet, use `pulumi new` to do so: no project file found

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).