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

[Bug]: [vite] Internal server error: Cannot use import statement outside a module #6633

Open
1 task done
rachardking opened this issue Feb 6, 2025 · 2 comments
Open
1 task done
Labels
bug Something isn't working severity:low Minor issues or affecting single user

Comments

@rachardking
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

[vite] Internal server error: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Function.Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap. (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at SSRCompatModuleRunner.directRequest (file:///Users/zhiwei.jin/Desktop/king

OpenHands Installation

Docker command in README

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@rachardking
Copy link
Author

up nodejs to 22 is ok

@mamoodi
Copy link
Collaborator

mamoodi commented Feb 6, 2025

Are you running Development mode? And you got this issue with Node 20?

@mamoodi mamoodi added the severity:low Minor issues or affecting single user label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:low Minor issues or affecting single user
Projects
None yet
Development

No branches or pull requests

2 participants