-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error from the database #1
Comments
Hello, to start client: CD api, CD client then "npm start".
To start server: CD api, then "npm run dev"
But app will give error as herokuapp is no longer free. I used free heroku
plan.
…On Sat, Apr 29, 2023, 9:46 AM Devansh Kumar ***@***.***> wrote:
while starting the project using the yarn start getting the error.
yarn start
yarn run v1.22.19
warning ../../../package.json: No license field
$ node server.js
hello world
(node:24275) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery
option will be switched back to false by default in Mongoose 7. Use mongoose.set('strictQuery',
false); if you want to prepare for this change. Or use mongoose.set('strictQuery',
true); to suppress this warning.
(Use node --trace-deprecation ... to show where the warning was created)
Server is listening on port 2000
/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/connection.js:695
throw new MongooseError('The uri parameter to openUri() must be a ' +
^
MongooseError: The uri parameter to openUri() must be a string, got
"undefined". Make sure the first parameter to mongoose.connect() or
mongoose.createConnection() is a string.
at NativeConnection.Connection.openUri
(/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/connection.js:695:11)
at
/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:414:10
at
/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
at new Promise ()
at promiseOrCallback
(/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
at Mongoose._promiseOrCallback
(/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:1288:10)
at Mongoose.connect
(/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:413:20)
at Object.
(/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/src/config/db.js:10:14)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
error Command failed with exit code 1.
what to do now help me out
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUR5FUQRWAKZ4DA7TFQ46NTXDTIOHANCNFSM6AAAAAAXQCVTW4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
so what's the solution for it. can you suggest anything to work this project properly ? |
hi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
while starting the project using the yarn start getting the error.
yarn start
yarn run v1.22.19
warning ../../../package.json: No license field
$ node server.js
hello world
(node:24275) [MONGOOSE] DeprecationWarning: Mongoose: the
strictQuery
option will be switched back tofalse
by default in Mongoose 7. Usemongoose.set('strictQuery', false);
if you want to prepare for this change. Or usemongoose.set('strictQuery', true);
to suppress this warning.(Use
node --trace-deprecation ...
to show where the warning was created)Server is listening on port 2000
/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/connection.js:695
throw new MongooseError('The
uri
parameter toopenUri()
must be a ' +^
MongooseError: The
uri
parameter toopenUri()
must be a string, got "undefined". Make sure the first parameter tomongoose.connect()
ormongoose.createConnection()
is a string.at NativeConnection.Connection.openUri (/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/connection.js:695:11)
at /Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:414:10
at /Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
at new Promise ()
at promiseOrCallback (/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
at Mongoose._promiseOrCallback (/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:1288:10)
at Mongoose.connect (/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/node_modules/mongoose/lib/index.js:413:20)
at Object. (/Users/devanshkumar/Downloads/VOF-mern-ecommerce-master/api/src/config/db.js:10:14)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
error Command failed with exit code 1.
what to do now help me out
The text was updated successfully, but these errors were encountered: