TypeError: Cannot read property 'length' of undefined Sequelize Model

I’m creating an api with sequelize, with controller model migrations… , but when I put sucrase for import/export my api broke, when I make a request it sends me this error “TypeError: Cannot read property ‘length’ of undefined” , I’m stuck in this part, I’ll leave my routes / controller / model here below

import express from 'express'
import UserController from './controllers/UserController.js'
const router = express.Router();

const userController = new UserController()

router.post("/users",userController.createUser)
router.post("/login", userController.login)

export default router;

this is my controller:

import User from '../models/User.js'
import crypto from 'crypto';
import  Op  from "sequelize";

class UserController {
  async createUser(req, res) {
    const { name, pw, message } = req.body;

    const password = crypto.createHash("md5").update(pw).digest("hex");

    try {
      const user = await User.create({ name, password, message });
      res.status(200).json({
        Response: "usuario criado com sucesso",
      });
    } catch (error) {
      console.log(error)
      res.status(401).json({
        Response: error,
      });
    }
  }

  async login(req, res) {
    const { name, pw } = req.body;
    const password = crypto.createHash("md5").update(pw).digest("hex");

    try {
      const results = await User.findAll({
        attributes: ["message"],
        where: {
          [Op.and]: [{ password: "password" }, { name: "name" }],
        },
      });
      console.log(results);
      res.status(200).json({
        Response: results,
      });
    } catch (error) {
      res.status(401).json({
        Response: "error",
      });
    }
  }
}
export default UserController;

this is my model:

import {DataTypes , Model} from 'sequelize';


class User extends Model {
  static init(sequelize) {
    super.init({
      name: DataTypes.STRING,
      password: DataTypes.STRING,
      message: DataTypes.TEXT
    }, {
      sequelize
    });
  }
}
export default User;

before sucrase my application was working normally, but i had problems with importing dotenv so i chose to use sucrase to help me with import/export, It’s worth mentioning that my migrations ran normally… only when I’m going to make an incision using User.create that pops the error, I’ll put the full error message here below, thanks for your attention.

TypeError: Cannot read property 'length' of undefined
    at User._initValues (/home/lagos/Documents/MySGBD/api/node_modules/sequelize/lib/model.js:140:49)
    at new Model (/home/lagos/Documents/MySGBD/api/node_modules/sequelize/lib/model.js:118:10)
    at new User (/home/lagos/Documents/MySGBD/api/src/models/User.js:4:1)
    at Function.build (/home/lagos/Documents/MySGBD/api/node_modules/sequelize/lib/model.js:2157:12)
    at Function.create (/home/lagos/Documents/MySGBD/api/node_modules/sequelize/lib/model.js:2207:23)
    at createUser (/home/lagos/Documents/MySGBD/api/src/controllers/UserController.js:12:43)
    at Layer.handle [as handle_request] (/home/lagos/Documents/MySGBD/api/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/lagos/Documents/MySGBD/api/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/home/lagos/Documents/MySGBD/api/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/lagos/Documents/MySGBD/api/node_modules/express/lib/router/layer.js:95:5)