Server typescript not loading environment variable mongodb azure cosmos
I have a microsoft azure database and have an api made with typescript to run on a node.js server, when i tested the api the night before all was working, wake up this morning and i keep getting an error TypeError: Cannot read properties of undefined (reading 'startsWith') at connectionStringHasValidScheme (C:UsersJordanDownloadsWebsiteauth-apinode_modulesmongodb-connection-string-urllibindex.js:9:30) at new ConnectionString (C:UsersJordanDownloadsWebsiteauth-apinode_modulesmongodb-connection-string-urllibindex.js:85:34) at parseOptions (C:UsersJordanDownloadsWebsiteauth-apinode_modulesmongodblibconnection_string.js:191:17) at new MongoClient (C:UsersJordanDownloadsWebsiteauth-apinode_modulesmongodblibmongo_client.js:51:63) at Object.<anonymous> (C:UsersJordanDownloadsWebsiteauth-apidistserver.js:25:16) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)