I am making these set of imports
import moment from 'moment';
import 'core-js/modules/es.promise';
import 'core-js/modules/es.string.includes';
import 'core-js/modules/es.object.assign';
import 'core-js/modules/es.object.keys';
import 'core-js/modules/es.symbol';
import 'core-js/modules/es.symbol.async-iterator';
import 'regenerator-runtime/runtime';
import * as excel from 'exceljs/dist/es5';
import appRoot from 'app-root-path';
import path from 'path';
import * as _ from 'underscore';
and dependencies in my package.json file looks like this
"dependencies": {
"app-root-path": "3.0.0",
"async": "3.0.1",
"axios": "0.18.1",
"bcrypt-nodejs": "0.0.3",
"bcryptjs": "2.4.3",
"bluebird": "3.5.5",
"body-parser": "1.19.0",
"cluster": "0.7.7",
"compression": "1.7.4",
"connect-mongo": "3.0.0",
"core-js": "3.6.5",
"cors": "2.8.5",
"date-and-time": "0.14.2",
"date-diff": "0.2.1",
"date-time": "3.1.0",
"docx": "6.0.3",
"dotenv": "8.0.0",
"errorhandler": "1.5.1",
"exceljs": "4.1.1",
"express": "4.17.1",
"express-flash": "0.0.2",
"express-session": "1.16.2",
"express-validator": "6.4.0",
"flow-bin": "0.104.0",
"formidable": "1.2.2",
"handlebars": "4.7.7",
"helmet": "3.19.0",
"html-docx-js": "0.3.1",
"html-pdf": "3.0.1",
"html-pdf-node": "1.0.8",
"implement-js": "0.0.27",
"install": "0.13.0",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21",
"lusca": "1.6.1",
"moment": "2.29.2",
"moment-precise-range-plugin": "1.3.0",
"moment-range": "4.0.2",
"mongodb": "4.3.1",
"mongoose": "5.6.0",
"multer": "1.4.2",
"node-thumbnail": "0.15.0",
"nodemailer": "6.4.16",
"nyc": "14.1.1",
"passport": "0.4.0",
"passport-facebook": "3.0.0",
"passport-jwt": "4.0.0",
"passport-local": "1.0.0",
"pdfmake": "0.1.65",
"pug": "3.0.1",
"request": "2.88.0",
"request-promise": "4.2.4",
"sinon": "7.3.2",
"underscore": "1.12.1",
"uuid": "7.0.3",
"winston": "3.2.1",
"winston-mongodb": "5.0.0",
"xlsx": "0.16.9"
},
Now in above dependencies as you can see the pug version is 3.0.1, so when I install and run it on debian container on docker, it gives me an error
Cannot find module 'regenerator-runtime/runtime'
But If I change pug version to 2.0.4 and try to install and run it on debian container on docker, it does not give any error.
Does someone know why it is happening with this pug version of 3.0.1.