美味的小圓
美味的小圓
Explore posts from servers
HHono
Created by 美味的小圓 on 11/21/2024 in #help
Any way to use @hono/auth-js without frontend?
Is there any way to use @hono/auth-js to create credentials provider session auth system without a frontend?
4 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 '[email protected]' failed with exit code 1
stderr:
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///<Project Path>/node_modules/.deno/[email protected]/node_modules/sharp/install/check' imported from 'file:///<Project Path>/node_modules/.deno/[email protected]/node_modules/sharp'

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

error: failed to run scripts for packages: [email protected]
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/[email protected]/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/[email protected]/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]/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/@[email protected]/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_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/[email protected]/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/[email protected]/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]/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/@[email protected]/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@[email protected]_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/[email protected]/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/[email protected]/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/[email protected]/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/[email protected]/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/[email protected]/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/[email protected]/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