Closed ajithv11 closed 3 years ago
to migrate the db, @ajithv11 go to .env file and replace the MONGO_URI=mongodb://localhost:27017/YourDBName
What about the error i have mentioned in the first post, I could not get rid of that
What about the error i have mentioned in the first post, I could not get rid of that
pls provide some more details
@ajithv11 refer to this https://github.com/mohamedsamara/mern-ecommerce/issues/49
@ajithv11 I was wondering if you still get the error after you have set up the database or if there are any database errors before this error?
I am getting the following error when I tried to start the application
mern-ecommerce/server/routes/api/product.js:292 if (!productDoc || productDoc?.brand?.isActive === false) {
SyntaxError: Unexpected token '.'
Could you please help me.
Also help me in migrating the mongo db data to my local system