Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executable does not run #69

Open
robertpkoenig opened this issue Mar 7, 2024 · 1 comment
Open

Executable does not run #69

robertpkoenig opened this issue Mar 7, 2024 · 1 comment

Comments

@robertpkoenig
Copy link

Within the pastel app, I see there is an executable generated. Within the hello-world example, the executable is called hello-world-tui

Wow! That's cool.

When I run this executable on another computer and got the error:

...
/snapshot/hello-world/dist/cli.js:2
import Pastel from 'pastel';
^^^^^^

SyntaxError: Cannot use import statement outside a module
...

I checked and the package.json in my is pastel app is set to "type": "module"

This is the contents of my dist/cli.js , which I did not change from the start code:

#!/usr/bin/env node
import Pastel from 'pastel';
const app = new Pastel({
    importMeta: import.meta,
});
await app.run();
@coreyar
Copy link

coreyar commented May 15, 2024

What version of node are you on? I looked for the example in the repo and I couldn't find it. I think this issue is outdated and could be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants