Closed on3dd closed 4 years ago
Found the source of the error. For some reason, inside the container, the project is built only if there is @nuxtjs/eslint-module
set in dependencies
instead of devDependencies
. Why does it work this way?
Do you notice HINT: During build step, for npm/yarn, NODE_ENV=production or --production should NOT be used.
in the WARN?
Seems like ENV NODE_ENV production
in your Dockerfile makes it doesn't install devDependencies. So during build process, @nuxtjs/eslint-module
cannot be found.
@gaowhen Oops, missed that. Thanks, the problem was solved.
how did you solve this .. pls reply
@on3dd
how did you solve this .. pls reply
read the thread
Hi there,
I'm trying to Dockerize my new Nuxt app and getting following error:
Complete error stack:
nuxt.config.js:
Dockerfile:
Project repository: https://github.com/on3dd/nuxt-sign-in-form
Any idea what I might be doing wrong here?