novuhq/novu

[NV-3045] ๐Ÿ› Bug Report: can't run migration when using docker

Open

#4,464 opened on Oct 9, 2023

View on GitHub
ย (3 comments)ย (1 reaction)ย (1 assignee)TypeScriptย (4,241 forks)batch import
Hacktoberfestlineartriage

Repository metrics

Stars
ย (38,713 stars)
PR merge metrics
ย (Avg merge 1d 5h)ย (256 merged PRs in 30d)

Description

๐Ÿ“œ Description

Whe i try to run the migration on docker i get a error message

๐Ÿ‘Ÿ Reproduction steps

Deploy using docker Run migration

๐Ÿ‘ Expected behavior

Run migration

๐Ÿ‘Ž Actual Behavior with Screenshots

@novu/api@0.19.0 migration:primary-provider cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./migrations/integration-scheme-update/add-primary-priority-migration.ts

Error: Cannot find module '../../src/config'

Novu version

0.19.0

npm version

No response

node version

No response

๐Ÿ“ƒ Provide any additional context for the Bug.

No response

๐Ÿ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

๐Ÿข Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

NV-3045

Contributor guide