Open prasadacharya26 opened 3 years ago
@prasadacharya26 getting same error while learning and coding.
Error: Configuration property "mongodb//localhost:27017/" is not defined
at Config.get (C:\Users\nb199\Desktop\tuesday\FoodEazy\node_modules\config\lib\config.js:182:11) at connectDB (C:\Users\nb199\Desktop\tuesday\FoodEazy\config\db.js:6:21)
at Object.
WARNING: No configurations found in configuration directory:C:\Users\Prasad\Downloads\FoodEazy-master\FoodEazy-master\config WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment. C:\Users\Prasad\Downloads\FoodEazy-master\FoodEazy-master\node_modules\config\lib\config.js:182 throw new Error('Configuration property "' + property + '" is not defined'); ^
Error: Configuration property "mongodb+srv://prasad:prasad@cluster0.hnhzs.mongodb.net/FoodEaszy?retryWrites=true" is not defined at Config.get (C:\Users\Prasad\Downloads\FoodEazy-master\FoodEazy-master\node_modules\config\lib\config.js:182:11) (C:\Users\Prasad\Downloads\FoodEazy-master\FoodEazy-master\server.js:19:1)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47
at connectDB (C:\Users\Prasad\Downloads\FoodEazy-master\FoodEazy-master\config\db.js:6:21) at Object.