data migrations according to instructions don't work
Hi everyone
I've been running a novu self hostet instance using docker-compose for a while now. the running version is v0.9. There are about 16k subscribers and a ton of notifications already stored.
- I have running a mongodb on my local machine using docker and imported a dump from the current production version. - I have cloned the next branch using
git clone git@github.com:novuhq/novu.git
git clone git@github.com:novuhq/novu.git
- After that i've adjusted the
apps/api/src/.env
apps/api/src/.env
to point the
MONGO_URL
MONGO_URL
to my mongodb
Now when i run the migration scripts according the documentation i'll get the following error.
npm run migration -- ./migrations/normalize-users-email/normalize-users-email.migration.ts> @novu/api@0.24.0 migration> cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/normalize-users-email/normalize-users-email.migration.tsEnvironment: localPlatform: DockerTenant: OSSelected Log Transport pino-prettyMigration Normalize Users Emailnpm ERR! Lifecycle script `migration` failed with error: npm ERR! Error: command failed npm ERR! in workspace: @novu/api@0.24.0 npm ERR! at location: /Users/katunch/Developments/novu-notification-platform/novu/apps/api
npm run migration -- ./migrations/normalize-users-email/normalize-users-email.migration.ts> @novu/api@0.24.0 migration> cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/normalize-users-email/normalize-users-email.migration.tsEnvironment: localPlatform: DockerTenant: OSSelected Log Transport pino-prettyMigration Normalize Users Emailnpm ERR! Lifecycle script `migration` failed with error: npm ERR! Error: command failed npm ERR! in workspace: @novu/api@0.24.0 npm ERR! at location: /Users/katunch/Developments/novu-notification-platform/novu/apps/api
Running node v18.19.0
Any idea what's the deal to make migrations running?