Relevant information to this issue:
- Programming language and version: Node 18
- Frameworks: Nuxt 3
- Link to my application: Qovery
I’m trying to deploy a Nuxt 3 application using a Docker container. The build itself and the deployment seem to work well, but when it comes to access the application, I get a 500 error.
Looking at the logs, this error is raised whenever the application receive a call:
[nuxt] [request error] [unhandled]  Cannot find module '/server/.output/server/node_modules/estree-walker/dist/esm/estree-walker.js' imported from /server/.output/server/chunks/handlers/renderer.mjs Did you mean to import estree-walker/dist/umd/estree-walker.js? at new NodeError (node:internal/errors:399:5) at finalizeResolution (node:internal/modules/esm/resolve:326:11) at moduleResolve (node:internal/modules/esm/resolve:945:10) at defaultResolve (node:internal/modules/esm/resolve:1153:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) at link (node:internal/modules/esm/module_job:76:36)
I cannot reproduce it even in a docker locally. One of my guess is that it could be that the packages installation that is not done the same way, but I’ve no idea on how to check.
If it can help, I am not using any fancy command to build and start the app. Here is the Dockerfile content:
FROM node:18-alpine COPY . . ENV HOST 0.0.0.0 ENV PORT 3000 ARG VITE_API_URL ENV VITE_API_URL $VITE_API_URL RUN npm install && npm run build EXPOSE 3000 CMD npm start
Am I missing something ?
Thanks in advance for any idea or hint !