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

Cannot use import statement outside a module #714

Closed
hritik5102 opened this issue Jul 13, 2022 · 4 comments · Fixed by #715
Closed

Cannot use import statement outside a module #714

hritik5102 opened this issue Jul 13, 2022 · 4 comments · Fixed by #715

Comments

@hritik5102
Copy link

Description

@leerob I'm not able to serve the content using npx serve -p 3000 the day before yesterday i was able to, not sure what might be causing this issue?

image

Library version

14.0.0

Node version

v12.14.0

@hritik5102
Copy link
Author

npx serve@13.0.4 had worked for me

@gamemaker1
Copy link
Contributor

Hi @hritik5102,

serve v14 onwards will only work with Node 14 onwards, as the package was converted to an ES module. Please continue to use serve 13 until you can upgrade to Node 14+.

@hritik5102
Copy link
Author

Got it. Thanks, @gamemaker1 for your quick response.

@hritik5102
Copy link
Author

Closing the issue

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 a pull request may close this issue.

2 participants