In the connection file you locked yourself in the error that you wrote:
if (!DB_URL) throw new Error("Enviroment variable DB_URL must be set");
and in the command line you get this:
/home/jasmine/Lotus/week-6/codeReview/FAC-Rating/src/database/db_connection.js:11
if (!DB_URL) throw new Error("Enviroment variable DB_URL must be set");
^
Error: Enviroment variable DB_URL must be set
at Object.<anonymous> (/home/jasmine/Lotus/week-6/codeReview/FAC-Rating/src/database/db_connection.js:11:20)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/home/jasmine/Lotus/week-6/codeReview/FAC-Rating/src/queries/getUserData.js:2:22)
at Module._compile (internal/modules/cjs/loader.js:799:30)
[nodemon] app crashed - waiting for file changes before starting...
If you get the same sentence that you wrote, then try to delete it and see what is the error, I tried and this is what I got:
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type undefined
In the connection file you locked yourself in the error that you wrote:
if (!DB_URL) throw new Error("Enviroment variable DB_URL must be set");
and in the command line you get this:
If you get the same sentence that you wrote, then try to delete it and see what is the error, I tried and this is what I got:
Continue:smile: