Sequelize error message gives no centext
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- cli
Research direction
Start by reproducing sequelize-cli db:seed:all with the reported Node and CLI versions. Review server/config/config.js and .sequelizerc; the issue names no target source file, test, or acceptance criterion, so the expected diagnostic context must be defined before completion can be assessed.
Written by the indexing model from the issue text.
Description
I am running sequelize cli and this is the error I get for any command being run
sequelize-cli db:seed:all
Sequelize CLI [Node: 20.17.0, CLI: 6.6.2, ORM: 6.37.3]
Loaded configuration file "server/config/config.js".
Using environment "development".
ERROR:
My config file:
const { config } = require('dotenv');
const path = require('path');
config({ path: path.resolve('../../.env') });
const DBConfig = {
development: {
username: process.env.DEV_DB_USERNAME,
password: process.env.DEV_DB_PASSWORD,
database: process.env.DEV_DB_DATABASE,
port: process.env.DEV_DB_PORT,
host: process.env.DEV_DB_HOST,
dialect: process.env.DEV_DB_DIALECT || 'mysql',
use_env_variable: process.env.DEV_DB_DATABASE_URL,
},
test: {
username: 'root',
password: '',
database: 'database_test',
port: '',
host: '127.0.0.1',
dialect: 'mysql',
use_env_variable: process.env.DATABASE_URL,
},
production: {
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
host: process.env.DB_HOST,
dialect: process.env.DB_DIALECT || 'mysql',
port: process.env.DB_PORT,
use_env_variable: process.env.DB_DATABASE_URL,
},
};
module.exports = DBConfig;
My .sequelizerc file:
const path = require('path');
module.exports = {
config: path.resolve('server', 'config', 'config.js'),
'models-path': path.resolve('server', 'models'),
'seeders-path': path.resolve('server', 'database', 'seeders'),
'migrations-path': path.resolve('server', 'database', 'migrations'),
};
Please I need help with this
- Dominant language
- JavaScript
- Stars
- 2.6k
- Forks
- 524
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sequelize/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·