Dialect needs to be explicitly supplied as of v4.0.0
使用sequelize,初始化时报错 Dialect needs to be explicitly supplied as of v4.0.0
C:\Users\11783\Desktop\tocity-service\node_modules\sequelize\lib\sequelize.js:281throw new Error('Dialect needs to be explicitly supplied as of v4.0.0');^Error: Dialect needs to be explicitly supplied as of v4.0.0at new Sequelize (C:\Users\11783\Desktop\tocity-service\node_modules\sequelize\lib\sequelize.js:281:13)at Object.<anonymous> (C:\Users\11783\Desktop\tocity-service\app.js:11:19)at Module._compile (internal/modules/cjs/loader.js:959:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)at Module.load (internal/modules/cjs/loader.js:815:32)
解决方案
const sequelize = new Sequelize('database', 'username', 'password', {host: 'localhost',dialect: /* 选择 'mysql' | 'mariadb' | 'postgres' | 'mssql' 其一 */
});
之前没有使用dialect指明具体数据库所以出错
Dialect needs to be explicitly supplied as of v4.0.0相关推荐
- Dialect needs to be explicitly supplied as of v4.0.0解决方案
nodejs报错:Dialect needs to be explicitly supplied as of v4.0.0 解决方案:少了dialect配置
- 组件分享之后端组件——Redis数据库的一个Go客户端redigo
组件分享之后端组件--Redis数据库的一个Go客户端redigo 背景 近期正在探索前端.后端.系统端各类常用组件与工具,对其一些常见的组件进行再次整理一下,形成标准化组件专题,后续该专题将包含各类 ...
- 成功解决xgboost.core.XGBoostError: b‘[14:48:08] 0 feature is supplied. Are you using raw Booster inter
成功解决xgboost.core.XGBoostError: b'[14:48:08] C:\\Users\\Administrator\\Desktop\\xgboost\\src\\learner ...
- 【spring boot】【POI】错误:The supplied data appears to be in the Office 2007+ XML
前言 spring boot 2.1.1.RELEASE poi 5.0.0 错误 Caused by: org.apache.poi.poifs.filesystem.OfficeXmlFileEx ...
- repmgr ERROR: connection to database failedDETAIL: fe_sendauth: no password supplied
ERROR: connection to database failed DETAIL: fe_sendauth: no password supplied repmgr报错切换失败 ERROR: c ...
- Android 引入aar文件 Supplied String module notation ‘aar‘ is invalid
Android 引入aar文件报错: Supplied String module notation 'aar' is invalid 解决 gradle中添加: repositories{flatD ...
- mysql dialect配置_iBatis3基于方言(Dialect)的分页
(注:以下代码是基于ibatis3 beta4的扩展,ibatis3正式版如果实现改变,将会继续跟进修改) iBatis3默认使用的分页是基于游标的分页,而这种分页在不同的数据库上性能差异不一致,最好 ...
- mysql database.dialect_JDBC各种数据库的连接驱动及url、dialect
1.驱动 mysql----->com.mysql.jdbc.Driver oracle----->oracle.jdbc.driver.OracleDriver sql server-- ...
- Practical Go: Real world advice for writing maintainable Go programs
转载地址:Practical Go: Real world advice for writing maintainable Go programs Table of Contents Introduc ...
最新文章
- 【转】TI蓝牙BLE 协议栈代码学习
- 人工智能支撑马赛克战机理研究
- ScaleGestureDetector使用注意事项
- PHP Web Shell in browser
- windows10 快捷代码
- OpenCv之黑白上色小技巧,奥黛丽赫本神颜,超惊艳滴~
- word怎么删除参考文献的横线_教大家word2016怎么去掉引用参考文献中的横线
- 微博开放领域的事件抽取【持续更新】
- python虎扑社区论坛数据爬虫分析报告
- oppoa83t怎么升级android8,OPPO A83t原版系统刷机包_OPPO A83t最新升级包更新下载
- 牛客网小白二(2018.4.21)
- angular 中如何实现多态与继承
- 硬件探索——STM32F4控制74HC595数码管
- Python之strip()
- 删除windows文件右击打开方式中的无效程序选项
- 给OneNote2016安装NoteHighlight2016, 插件无法加载问题【已解决】
- Latent Variables的理解
- 生成keytab脚本
- 微信小程序怎么开店铺?
- 详细!如何判断各种电子元器件受损表现