next-learn
next-learn copied to clipboard
Unable to seed the data due to connection error
Getting error while using the seed command
Please tell if someone has any idea of what's happening...
I am using Node.js v20.11.1
@gauravkumar5089 Did you find the solution?
I also have the same error...Can someone help please?
I also have the same error...Can someone help please?
I don't exactly how it worked out but i tried to remove the database and again add the environment variables two - three times. That worked for me. Hope it also works for you
I also have the same error...Can someone help please?
I don't exactly how it worked out but i tried to remove the database and again add the environment variables two - three times. That worked for me. Hope it also works for you
I found the error. I had to remove the "." from the ".seed" command found in the package.json file
there is nothing .seed in package.json
Anyone found solution to this problem?
try running vercel dev instead of npm run dev
that did the magic for me https://github.com/orgs/vercel/discussions/2350#discussioncomment-5850746
I was able to get through this issue by nvm use 18.17.1 and made sure .env was correctly configured. It took me more than 8 hours 😂️.
nvm use 18 worked for me too
Worked for me thnx @Suitec9 and @ianMuchesia
my ndoe version is v20.12.2 and have the same issue. So i changed the seed script to 'bun -r dotenv/config ./scripts/seed.js', and it works now.