-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
Module not found: Can't resolve './crypto/build/Release/sshcrypto.node' #775
Comments
+1 |
Fixed by manually installing
|
Thanks for the comment, but this doesn't fully solve the error in a project referencing dockerode as a dependency.
git --no-pager diff diff --git a/package.json b/package.json
index 48194bc6..bf5e0f3d 100644
--- a/package.json
+++ b/package.json
@@ -48,5 +48,8 @@
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
+ },
+ "dependencies": {
+ "ssh2": "^1.15.0"
}
}
\ No newline at end of file
diff --git a/packages/api/package.json b/packages/api/package.json
index 782e0a28..683d7402 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -41,6 +41,7 @@
"dockerode": "^4.0.2",
"next": "^14.2.11",
"react": "^18.3.1",
+ "ssh2": "^1.15.0",
"superjson": "2.2.1",
"trpc-swagger": "^1.2.6"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4ab21413..8a34e3a5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -12,6 +12,10 @@ patchedDependencies:
importers:
.:
+ dependencies:
+ ssh2:
+ specifier: ^1.15.0
+ version: 1.15.0
devDependencies:
'@homarr/prettier-config':
specifier: workspace:^0.1.0
@@ -21,10 +25,10 @@ importers:
version: 2.1.2(@types/[email protected])([email protected])
'@vitejs/plugin-react':
specifier: ^4.3.1
- version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))
+ version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))
'@vitest/coverage-v8':
specifier: ^2.1.1
- version: 2.1.1([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))
+ version: 2.1.1([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected]))
'@vitest/ui':
specifier: ^2.1.1
version: 2.1.1([email protected])
@@ -48,10 +52,10 @@ importers:
version: 5.6.2
vite-tsconfig-paths:
specifier: ^5.0.1
- version: 5.0.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))
+ version: 5.0.1([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))
vitest:
specifier: ^2.1.1
- version: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])
+ version: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])
apps/nextjs:
dependencies:
@@ -515,6 +519,9 @@ importers:
react:
specifier: ^18.3.1
version: 18.3.1
+ ssh2:
+ specifier: ^1.15.0
+ version: 1.15.0
superjson:
specifier: 2.2.1
version: 2.2.1
@@ -9567,18 +9574,18 @@ snapshots:
global: 4.4.0
is-function: 1.0.2
- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))':
+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':
dependencies:
'@babel/core': 7.24.6
'@babel/plugin-transform-react-jsx-self': 7.24.5(@babel/[email protected])
'@babel/plugin-transform-react-jsx-source': 7.24.1(@babel/[email protected])
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
- vite: 5.2.11(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
+ vite: 5.2.11(@types/[email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- '@vitest/[email protected]([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))':
+ '@vitest/[email protected]([email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected]))':
dependencies:
'@ampproject/remapping': 2.3.0
'@bcoe/v8-coverage': 0.2.3
@@ -9592,7 +9599,7 @@ snapshots:
std-env: 3.7.0
test-exclude: 7.0.1
tinyrainbow: 1.2.0
- vitest: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])
+ vitest: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -9603,13 +9610,13 @@ snapshots:
chai: 5.1.1
tinyrainbow: 1.2.0
- '@vitest/[email protected](@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))':
+ '@vitest/[email protected](@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':
dependencies:
'@vitest/spy': 2.1.1
estree-walker: 3.0.3
magic-string: 0.30.11
optionalDependencies:
- vite: 5.2.11(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
+ vite: 5.2.11(@types/[email protected])([email protected])([email protected])([email protected])
'@vitest/[email protected]':
dependencies:
@@ -9639,7 +9646,7 @@ snapshots:
sirv: 2.0.4
tinyglobby: 0.2.6
tinyrainbow: 1.2.0
- vitest: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])
+ vitest: 2.1.1(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])
'@vitest/[email protected]':
dependencies:
@@ -14146,12 +14153,12 @@ snapshots:
dependencies:
global: 4.4.0
- [email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]):
+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):
dependencies:
cac: 6.7.14
debug: 4.3.7
pathe: 1.1.2
- vite: 5.2.11(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
+ vite: 5.2.11(@types/[email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -14162,18 +14169,18 @@ snapshots:
- supports-color
- terser
- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected])):
+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):
dependencies:
debug: 4.3.5
globrex: 0.1.2
tsconfck: 3.0.3([email protected])
optionalDependencies:
- vite: 5.2.11(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
+ vite: 5.2.11(@types/[email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- typescript
- [email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]):
+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):
dependencies:
esbuild: 0.20.2
postcss: 8.4.45
@@ -14185,10 +14192,10 @@ snapshots:
sugarss: 4.0.1([email protected])
terser: 5.32.0
- [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]):
+ [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected]):
dependencies:
'@vitest/expect': 2.1.1
- '@vitest/mocker': 2.1.1(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))
+ '@vitest/mocker': 2.1.1(@vitest/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))
'@vitest/pretty-format': 2.1.1
'@vitest/runner': 2.1.1
'@vitest/snapshot': 2.1.1
@@ -14203,8 +14210,8 @@ snapshots:
tinyexec: 0.3.0
tinypool: 1.0.0
tinyrainbow: 1.2.0
- vite: 5.2.11(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
- vite-node: 2.1.1(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])
+ vite: 5.2.11(@types/[email protected])([email protected])([email protected])([email protected])
+ vite-node: 2.1.1(@types/[email protected])([email protected])([email protected])([email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 20.16.5 |
got any solution??? |
+1, same issue here. |
Same issue here |
Not sure if this will help (it helped me). I installed "node-loader" (npm install node-loader) and configured it for .node-files in the Webpack config.
|
Similar to #759
When we import Dockerode from a TS file
we get this error occasionally:
Functionality does not seem to be affected, but the warning is annoying.
next.config.mjs
We use server side components & the app directory.
The text was updated successfully, but these errors were encountered: