Replies: 2 comments 2 replies
-
It looks like you are trying to use ES modules (using import/export syntax) in a CommonJS environment. {
"type": "module",
// rest...
} This resolves the error because all |
Beta Was this translation helpful? Give feedback.
2 replies
-
If .js file is used instead of .ts , while deploying on Vercel the following warning comes in the Build log: Warning: Node.js functions are compiled from ESM to CommonJS. If this is not intended, add "type": "module" to your package.json file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to deploy hono app in vercel?, using the vercel template not the next.js template, I want to separate my hono server for some reason, I'm trying to run the script from hono vercel template which is "start": "vercel dev" to start my hono app but I've got this error Error: Cannot use import statement outside a module
Beta Was this translation helpful? Give feedback.
All reactions