79422931

Date: 2025-02-08 09:43:03
Score: 1.5
Natty:
Report link

I've successfully reproduced your error on my computer

After a few tweaks to your code, here is the success message

enter image description here

The problem lies in line 2 of your index.js file, where you are importing pool instead of sequelize

You should change the line

import pool from './db/db.js';

to

import sequelize from './db/db.js';
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rony Lee