Open mgsmyth opened 3 months ago
Hmmm, what version of yarn are you using locally?
Try to delete node_modules locally and run yarn install
again and run yarn build
If this goes well than in order to populate production database you have to change locally env file, add these variables:
MODE="production" DATABASE_HOST="raidar-dev.cp78qof4mguj.eu-central-1.rds.amazonaws.com" - put yours DATABASE_PORT=5432 DATABASE_NAME="raidar-testnet" - your db name DATABASE_USER="postgres" - this is default one, if you named it different change DATABASE_PASSWORD="yourpassword" - put yours
in package json change migration:run
script to yarn build && MODE=production yarn typeorm migration:run -d src/common/config/db/orm.config.ts
and run that script, afterward change to local values
I am running yarn v1.22.22
I removed node_modules
and ran yarn install
, which worked well. But I hit the same error reported above when I ran yarn build
after that.
Would be good to migrate yarn to new version before call, check migration guide here https://yarnpkg.com/migration/guide
I migrated to berry (4.4.1) as that guide recommends, but I got the exact same error. Then I migrated to version 3.6.3 as Ivor recommended, and I'm still hitting the same error.
Trying to set up Postgres in AWS RDS, but I'm hitting an error during the
nest build
part of theyarn run migration:generate
command (output below).I ran
yarn install
successfully first on my local machine. I tried upgrading@types/cron
to the latest version2.4.0
instead of2.0.1
, but the output is the same. Please advise on next steps.Output: