BayBreezy / crm-nuxt

2 stars 0 forks source link

getting error while running seed #1

Closed prashantnirgun closed 11 months ago

prashantnirgun commented 11 months ago

An error occurred while running the seed command: Error: Command failed with exit code 1: npx ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have not used the Prisma & tailwind before this if you could fix this will be a great help.

BayBreezy commented 11 months ago

Hello @prashantnirgun Thanks for checking the repo. Can you walk me through what you did before running the command? These are the steps taken that made it work for me

Try these steps and let me know if you still have this problem. I am in the process of updating the repo now. The packages are outdated lol

prashantnirgun commented 11 months ago

Please fix it 01 Warning No license in package.json 02 package.json script there is typo error instead of prisma:push your type primsa:push 03 After Signup and Sign In on top right of screen an alert message "expiresIn" should be a number of seconds or string representing a timespan

Coluld not able to login I checked into database two user created with email and username column is empty

BayBreezy commented 11 months ago

Hello,

If you want to add a license to your project, feel free to do so. I don't need a license in this repo as it was just me testing out prisma with nuxt. It was not meant to be a serious application.

prashantnirgun commented 11 months ago

is it ok ?

DB="file:./dev.db"
JWT_SECRET="SDFJG3459345034DFLGDGKLD"
JWT_EXP_SEC="50000"
JWT_EXP_DYS="10"
COOKIE_NAME="my_app_cookie"

I am still getting the error

BayBreezy commented 11 months ago

Hello @prashantnirgun I see the issue now. The value for JWT_EXP_DYS is invalid. It should be "10d" for 10 days. Putting 10 as the value will cause jsonwebtoken to set the exp days to 10 milliseconds

prashantnirgun commented 11 months ago

Yes its working now, thanks