Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - Error running Database Migrations [ERR_MODULE_NOT_FOUND] #115

Open
leoraba opened this issue Nov 27, 2024 · 0 comments
Open

BUG - Error running Database Migrations [ERR_MODULE_NOT_FOUND] #115

leoraba opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@leoraba
Copy link
Contributor

leoraba commented Nov 27, 2024

Description

External module is importing @overture-stack/[email protected] and it fails to run Database migrations.

Expected Behaviour

To be able to use migrate function and successfully run Lyric DB migrations.

Actual Behaviour

Calling migrate function when imported from external module throws an error:

Error:

node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/@[email protected]/node_modules/@overture-stack/lyric-data-model/index.js' imported from /Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/@[email protected]/node_modules/@overture-stack/lyric/dist/index.js
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at nextResolve (node:internal/modules/esm/hooks:866:28)
    at resolveBase (file:///Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1732729603003:2:3212)
    at resolveDirectory (file:///Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1732729603003:2:3584)
    at resolveTsPaths (file:///Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1732729603003:2:4073)
    at resolve (file:///Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs?1732729603003:2:4447)
    at nextResolve (node:internal/modules/esm/hooks:866:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:304:30) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/lrivera/dev/virusseq_submission-service/node_modules/.pnpm/@[email protected]/node_modules/@overture-stack/lyric-data-model/index.js'
}

Your Environment

  • Version used: @overture-stack/[email protected]
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Node.js v20.12.2
  • Operating System and version (desktop or mobile): Mac M1
@leoraba leoraba added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant