美味的小圓
美味的小圓
DDeno
Created by 美味的小圓 on 12/12/2024 in #help
Problem about using Deno docker image
The project can run locally, but after I built the project to docker image, created container with the image and run it with docker on my computer, it run out with following error:
Downloading https://github.com/felix-schindler/deno-argon2/releases/download/v2.0.2/libdeno_argon2.so
2024-12-12 16:25:58 error: Uncaught (in promise) Error: Could not open library: Could not open library: /deno-dir/plug/https/github.com/901e77fb36a064d7e5d8cfea1f471efd18d8302970caec522cb2c388e33fbf4b.so: cannot open shared object file: No such file or directory
2024-12-12 16:25:58 return Deno.dlopen<S>(await download(options), symbols as any);
2024-12-12 16:25:58 ^
2024-12-12 16:25:58 at new DynamicLibrary (ext:deno_ffi/00_ffi.js:456:42)
2024-12-12 16:25:58 at Object.dlopen (ext:deno_ffi/00_ffi.js:562:10)
2024-12-12 16:25:58 at dlopen (https://jsr.io/@denosaurs/plug/1.0.6/mod.ts:158:15)
2024-12-12 16:25:58 at eventLoopTick (ext:core/01_core.js:175:7)
2024-12-12 16:25:58 at async https://jsr.io/@felix/argon2/2.0.2/lib/internal.ts:61:13
Downloading https://github.com/felix-schindler/deno-argon2/releases/download/v2.0.2/libdeno_argon2.so
2024-12-12 16:25:58 error: Uncaught (in promise) Error: Could not open library: Could not open library: /deno-dir/plug/https/github.com/901e77fb36a064d7e5d8cfea1f471efd18d8302970caec522cb2c388e33fbf4b.so: cannot open shared object file: No such file or directory
2024-12-12 16:25:58 return Deno.dlopen<S>(await download(options), symbols as any);
2024-12-12 16:25:58 ^
2024-12-12 16:25:58 at new DynamicLibrary (ext:deno_ffi/00_ffi.js:456:42)
2024-12-12 16:25:58 at Object.dlopen (ext:deno_ffi/00_ffi.js:562:10)
2024-12-12 16:25:58 at dlopen (https://jsr.io/@denosaurs/plug/1.0.6/mod.ts:158:15)
2024-12-12 16:25:58 at eventLoopTick (ext:core/01_core.js:175:7)
2024-12-12 16:25:58 at async https://jsr.io/@felix/argon2/2.0.2/lib/internal.ts:61:13
Do anyone have any idea about how to solve it?
3 replies
DDeno
Created by 美味的小圓 on 11/20/2024 in #help
deno install error for Nextjs Project
I'm using Deno 2.0.6 for now. But after I created Next.js app with create-next-app, I cd into the folder, deleted node_modules folder and run deno install --allow-scripts to re-install all modules with deno, but it give me the following error below:
error: script 'install' in 'sharp@0.33.5' failed with exit code 1
stderr:
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///<Project Path>/node_modules/.deno/sharp@0.33.5/node_modules/sharp/install/check' imported from 'file:///<Project Path>/node_modules/.deno/sharp@0.33.5/node_modules/sharp'

error: failed to run scripts for packages: sharp@0.33.5
error: script 'install' in 'sharp@0.33.5' failed with exit code 1
stderr:
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///<Project Path>/node_modules/.deno/sharp@0.33.5/node_modules/sharp/install/check' imported from 'file:///<Project Path>/node_modules/.deno/sharp@0.33.5/node_modules/sharp'

error: failed to run scripts for packages: sharp@0.33.5
Any idea about how to solve this? I think that this is problem of deno, I have already tried initializing nextjs project with other package manager (e.g. Bun, npm), there is no std error like this.
1 replies
DDeno
Created by 美味的小圓 on 10/17/2024 in #help
Node:net capability problem?
I try to run my nestjs project on Deno 2.0.1, but it run out with the error below, but with Deno 2.0.0, there is no error, what happened?
[Nest] 1283 - 10/17/2024, 9:48:01 AM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'setNoDelay')
TypeError: Cannot read properties of undefined (reading 'setNoDelay')
at TCP.setNoDelay (ext:deno_node/internal_binding/tcp_wrap.ts:229:28)
at Socket.setNoDelay (node:net:595:20)
at new Connection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.service.js:11:40)
at InstanceWrapper.useFactory [as metatype] (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:70:13)
[Nest] 1283 - 10/17/2024, 9:48:01 AM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'setNoDelay')
TypeError: Cannot read properties of undefined (reading 'setNoDelay')
at TCP.setNoDelay (ext:deno_node/internal_binding/tcp_wrap.ts:229:28)
at Socket.setNoDelay (node:net:595:20)
at new Connection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.service.js:11:40)
at InstanceWrapper.useFactory [as metatype] (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:70:13)
2 replies
DDeno
Created by 美味的小圓 on 10/14/2024 in #help
Nestjs project hasn't been support for now?
I got the error message below when deploy my nestjs application, is nestjs hasn't been support for now? Or there is a way to deploy nestjs project to Deno deploy for now? Or this is a problem about a module (not nestjs) which can't run on Deno Deploy?
error: The deployment failed: UNCAUGHT_EXCEPTION

Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at load (file:///node_modules/.deno/node-gyp-build@4.8.2/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:190:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
error: The deployment failed: UNCAUGHT_EXCEPTION

Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at load (file:///node_modules/.deno/node-gyp-build@4.8.2/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:190:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
2 replies