We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
_loadDialectModule(moduleName) { try { if (this.sequelize.config.dialectModulePath) { return require(this.sequelize.config.dialectModulePath); } if (this.sequelize.config.dialectModule) { return this.sequelize.config.dialectModule; } return require("sqlite3"); } catch (err) { if (err.code === "MODULE_NOT_FOUND") { if (this.sequelize.config.dialectModulePath) { throw new Error(Unable to find dialect at ${this.sequelize.config.dialectModulePath}); } throw new Error(Please install ${moduleName} package manually); } throw err; } }
Unable to find dialect at ${this.sequelize.config.dialectModulePath}
Please install ${moduleName} package manually
return require("sqlite3"); 可以正常执行 return require(moduleName); 就会throw new Error(Please install ${moduleName} package manually)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
_loadDialectModule(moduleName) {
try {
if (this.sequelize.config.dialectModulePath) {
return require(this.sequelize.config.dialectModulePath);
}
if (this.sequelize.config.dialectModule) {
return this.sequelize.config.dialectModule;
}
return require("sqlite3");
} catch (err) {
if (err.code === "MODULE_NOT_FOUND") {
if (this.sequelize.config.dialectModulePath) {
throw new Error(
Unable to find dialect at ${this.sequelize.config.dialectModulePath}
);}
throw new Error(
Please install ${moduleName} package manually
);}
throw err;
}
}
return require("sqlite3"); 可以正常执行
return require(moduleName); 就会throw new Error(
Please install ${moduleName} package manually
)The text was updated successfully, but these errors were encountered: