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

NestJS run on Docker issue #145

Open
anicdh opened this issue Apr 8, 2024 · 1 comment
Open

NestJS run on Docker issue #145

anicdh opened this issue Apr 8, 2024 · 1 comment

Comments

@anicdh
Copy link

anicdh commented Apr 8, 2024

Versions:

"@dydxprotocol/v4-client-js": "1.0.25"
"@nestjs": "9.1.6",
"docker-image": "node:16.18.0-alpine3.16"

I got this error

node:internal/modules/cjs/loader:988
  throw err;
  ^
Error: Cannot find module '@dydxprotocol/v4-proto/src/codegen/dydxprotocol/assets/genesis'
Require stack:
- /home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/clients/modules/proto-includes.js
- /home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/clients/types.js
- /home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/types.js
- /home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/index.js
- /home/node/app/dist/modules/dydx/dydx-order.service.js
- /home/node/app/dist/modules/dydx/dydx-order.module.js
- /home/node/app/dist/app.module.js
- /home/node/app/dist/main.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
    at Function.Module._load (node:internal/modules/cjs/loader:833:27)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/clients/modules/proto-includes.js:52:14)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/clients/modules/proto-includes.js',
    '/home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/clients/types.js',
    '/home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/types.js',
    '/home/node/app/node_modules/@dydxprotocol/v4-client-js/build/src/index.js',
    '/home/node/app/dist/modules/dydx/dydx-order.service.js',
    '/home/node/app/dist/modules/dydx/dydx-order.module.js',
    '/home/node/app/dist/app.module.js',
    '/home/node/app/dist/main.js'
  ]
}

Tried to upgrade node to 18.20.1 but the same issue has been happened

Copy link

linear bot commented Apr 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant