55GMS icon indicating copy to clipboard operation
55GMS copied to clipboard

[Bug]: the "node ." command isn't working quite right

Open eragon29049042 opened this issue 4 months ago • 3 comments

What happened (please tell us in detail)?

sorry if someone already said this and I missed it, but this Is the error message I got. some of it might not be part of the error, I only know a little bit of coding.

node:internal/validators:162 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined at new NodeError (node:internal/errors:387:5) at validateString (node:internal/validators:162:11) at Url.parse (node:url:168:3) at Object.urlParse [as parse] (node:url:155:13) at new Sequelize (/workspaces/55GMS/node_modules/sequelize/lib/sequelize.js:57:28) at Object. (/workspaces/55GMS/config/database.js:4:19) at Module._compile (node:internal/modules/cjs/loader:1198:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12) { code: 'ERR_INVALID_ARG_TYPE' }

What browsers are you seeing the problem on / what browser did you use?

No response

eragon29049042 avatar Aug 26 '25 18:08 eragon29049042

oh

ghost avatar Aug 26 '25 18:08 ghost

The error happens because Sequelize needs a URL for the database but your config doesn’t have one or it’s undefined To fix it just make sure your config/database.js has a valid database connection string for the URL like your database username password host and database name

ghost avatar Aug 26 '25 18:08 ghost

wdym database username password host and database name? also when I used this last year I didnt have to do this. is there a way to set it to automatically do what you are asking me whenever I create a codespace on 55gms?

eragon29049042 avatar Sep 03 '25 17:09 eragon29049042