DEV Community

Discussion on: How to Create Dockerized NodeJS with MySQL Database

Collapse
 
pedromirandareis profile image
Pedro Miranda • Edited

This is exactly what Im looking for, thanks for your hard work!

Mysql is working fine but json dont

Error: Cannot find module 'dotenv'
Require stack:

  • /app/index.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (/app/index.js:1:1) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint as runMain
Collapse
 
frasnym profile image
Frastyawan Nym

Hello,

It's like that you don't install dotenv module 🤔
Can I see you package.json file? or project repo if possible?