[BUG]: Docker file builds successfully but raises error "Cannot find module '@activepieces/shared'" when testing/running #4786
Labels
blocked: waiting-response
waiting a response from the user
Describe the bug
Two Docker file related issues to report:
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '@activepieces/shared'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at moduleId (webpack:///external%20commonjs%20%22@activepieces/shared%22:1:18)
at r (webpack:///webpack/bootstrap:19:22)
at moduleId (webpack:///src/app/database/database-connection.ts:1:1)
at r (webpack:///webpack/bootstrap:19:22)
at e (webpack:///src/main.ts:1:1)
at (webpack:///src/main.ts:93:37) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/src/app/dist/packages/server/api/main.js' ]
}
Node.js v18.19.1
To Reproduce
Building the docker image using a standard build command:
sudo DOCKER_BUILDKIT=1 docker build . -t activcepieces_tag1
it builds successfully
then, running/testing it (it does not make a difference if providing the env file/variables or not):
sudo docker run -it activcepieces_tag1
it raises the reported error.
Expected behavior
To build and run the project successfully using the provided Docker file.
Screenshots
Can be replicated using the above command lines.
Additional context
None.
The text was updated successfully, but these errors were encountered: