Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97313

VS Code's Intellisense does not suggest any functions of a Sequelize object in Node.js?

$
0
0

When following the Sequelize's document, I created User model by using the sequelize object.

const Sequelize = require("sequelize");

const Model = Sequelize.Model;
const path = "mysql://user:password@localhost:3306/test_db";

const sequelize = new Sequelize(path, {
  pool: {
    max: 5,
    min: 0,
    acquire: 30000,
    idle: 10000
  }
});

const User = sequelize.define('user', {
  firstName: {
    type: Sequelize.STRING,
    allowNull: false
  },
  lastName: {
    type: Sequelize.STRING
  }
}, {});

The code runs fine but the problem is the Intellisense from the VS Code did not suggest any functions from the sequelize object like this :

this

Is this a kind of bug or do I code something wrong?


Viewing all articles
Browse latest Browse all 97313

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>