We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Within the pastel app, I see there is an executable generated. Within the hello-world example, the executable is called hello-world-tui
hello-world
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"
"type": "module"
This is the contents of my dist/cli.js , which I did not change from the start code:
dist/cli.js
#!/usr/bin/env node import Pastel from 'pastel'; const app = new Pastel({ importMeta: import.meta, }); await app.run();
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
Within the pastel app, I see there is an executable generated. Within the
hello-world
example, the executable is calledhello-world-tui
Wow! That's cool.
When I run this executable on another computer and got the error:
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:The text was updated successfully, but these errors were encountered: