Skip to content

Conversation

@BahadorGh
Copy link

I started the project from scratch using npm init -y, but when trying to do node index.js, I faced the SyntaxError: Cannot use import statement outside a module because of using import inside a JS file.

Description

So, we need to edit the package.json to accept the import way.


I started the project from scratch using npm init -y, but when trying to do node index.js, I faced the SyntaxError: Cannot use import statement outside a module because of using import inside a JS file.

So, we need to edit the package.json to accept the import way.
@BahadorGh BahadorGh requested a review from a team as a code owner March 11, 2025 05:03
@vercel
Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2025 5:06am

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

Successfully merging this pull request may close these issues.

1 participant