skip to Main Content

NestJs Docker container shows errors

I have dockerized a NestJs application. But running it shows Error: Error loading shared library /usr/src/app/node_modules/argon2/lib/binding/napi-v3/argon2.node: Exec format error and sometimes it shows Cannot find module 'webpack' Strangely, it works fine on Windows but the errors come up on mac…

VIEW QUESTION

Mongodb – nodemon app crashed – waiting for file changes before starting. Can someone sort this out please

import express from 'express'; import bodyParser from 'body-parser'; import mongoose from 'mongoose'; import cors from 'cors'; const app = express(); app.use(bodyParser.json({limit: "30mb", extended: true})); app.use(bodyParser.urlencoded({limit: "30mb", extended: true })); app.use(cors()); const CONNECTION_URL = 'mongodb+srv://humoudmajid:[email protected]/?retryWrites=true&w=majority' const PORT = process.env.PORT || 5000;…

VIEW QUESTION
Back To Top
Search