Docker Compose Container Setup - Module not found error
I'm trying to get Nuxt 3 set up in a docker environment. Ultimately, I'd like to get live-reload working for development. For now, I can't even access any webpages without getting a
500: Cannot read properties of undefined (reading 'modules')
error. I'll post code below. The Nuxt build is basically a fresh install. The docker setup is a little unique, but I believe there aren't any routing problems. I'll post code below:2 Replies
I spin up the container with
docker-compose build --no-cache app && docker-compose --profile app up
, and the Nuxt server starts up. Upon visiting http://app.echo.io/
, 10.0.0.11:4444
, and localhost:4444
(all of which route to the Nuxt app), I get this:
I am at a complete loss. I've tried so many variations on the docker-compose setup, the Dockerfile, routing, etc. I've read here (https://github.com/nuxt/framework/issues/7220) and here (https://github.com/nuxt/framework/issues/7609)
Anyone got any ideas?
GitHub
Cannot read properties of undefined (reading 'modules') · Issue #72...
Environment Operating System: Darwin Node Version: v16.14.0 Nuxt Version: 3.0.0-rc.9 Nitro Version: 0.5.0 Package Manager: [email protected] Builder: vite User Config: - Runtime Modules: - Build Modules: -...
GitHub
[RC 9] [RC 10] `Cannot read properties of undefined (reading 'modul...
Related issues #7532 #7220 #7573 #7564 sidebase/sidebase#16 Reproduction Minimal reproduction: https://stackblitz.com/edit/github-2yn1ze?file=app%2Fpackage.json,app%2Fnuxt.config.ts Describe the bu...