generated from napi-rs/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
HI Team,
On macOS, I use the snappy package, which is successful. however, the moment I attempt to launch the project locally using Docker Desktop, an issue occurs while starting the container-
`Error: Cannot find module '@napi-rs/snappy-linux-x64-musl'
Require stack:
- /code/node_modules/snappy/index.js
- /code/dist/server/index.js
- /code/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Function.wrappedResolveFilename [as _resolveFilename] (/code/node_modules/newrelic/lib/shimmer.js:291:42)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.wrappedLoad [as _load] (/code/node_modules/newrelic/lib/shimmer.js:307:24)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/code/node_modules/snappy/index.js:1:2955)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/code/node_modules/snappy/index.js',
'/code/dist/server/index.js',
'/code/index.js'
]
}`
The potential problem that I see is connected to optionalDependencies because it only installs @napi-rs/snappy-darwin-x64 compatible with Mac and searches for Linux @napi-rs dependencies when I run it in a docker container.
What could be the potential solution of this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
