在Sequelize挂钩初始化中得到了这个

时间:2019-05-15 08:31:07

标签: typescript

嗨,我正在使用应用程序打字稿节点js

并在部署到heroku时出现此错误

node_modules / sequelize-typescript / dist / hooks / shared / hook-meta.d.ts:2:32-错误TS2307:找不到模块'sequelize / types / lib / hooks'。

   2 import { SequelizeHooks } from "sequelize/types/lib/hooks";

我的package.json是

    "dependencies": {
        "bcrypt": "^3.0.2",
        "bluebird": "^3.5.1",
        "body-parser": "^1.18.2",
        "dotenv": "^6.2.0",
        "express": "^4.16.2",
        "express-statsd": "^0.3.0",
        "express-validator": "^5.3.0",
        "hashids": "^1.2.2",
        "jsonwebtoken": "^8.4.0",
        "mailgun-js": "^0.22.0",
        "mysql2": "^1.5.1",
        "nyc": "^13.1.0",
        "reflect-metadata": "^0.1.10",
        "sequelize": "^4.37.5",
        "sequelize-typescript": "^1.0.0-alpha.1",
        "strong-error-handler": "^2.3.0",
        "supertest": "^3.3.0",
        "uuid": "^3.3.2"   },  
 "devDependencies": {
        "@types/express": "^4.0.39",
        "@types/mocha": "2.2.41",
        "@types/node": "^8.10.39",
        "mocha": "^5.2.0",
        "ts-node": "^3.3.0",
        "tslint": "^5.8.0",
        "typescript": "^2.8.1"   }

0 个答案:

没有答案