AryanChothani
AryanChothani
> TypeError: sequelize.import is not a function > > ```js > const fs = require('fs'); > const path = require('path'); > fs > .readdirSync('./models') > .forEach((file) => { > //const...
thanks it helped
> In your models/index.js > > ```js > const dbConfig = require("../config/db.config"); > > const Sequelize = require("sequelize"); > const sequelize = new Sequelize(dbConfig.DB, dbConfig.USER, dbConfig.PASSWORD, { > host: dbConfig.HOST,...
> I see that you changed the code to > > ```js > const dbConfig = require("../config/db.config")[process.env.NODE_ENV]; > ``` > > Make sure NODE_ENV is set i have seted NODE_ENV...
> Are you still running `npm start dev`? This is running the `npm start` script, to run dev or prod, you must use `npm run dev` or `npm run prod`...
thank you for help
After Updating Node version Rebuild node packages ``` cd /to/root/of/your/project npm rebuild npm i -g pm2 && pm2 update =here 0 and dist/main.js change for your project pm2 delete 0...