u007
u007
Explore posts from servers
PPrisma
Created by u007 on 8/8/2024 in #help-and-questions
Type instantiation is excessively deep and possibly infinite
when i use prisma extension, i get this kind of error on my ide, omg we have exceed the limitation of typescript, what can be done? #typescript
2 replies
NNuxt
Created by u007 on 7/15/2024 in #❓・help
readFileSync" is not exported by
pnpm build got this error, any clue? 31.45 ℹ ✓ 8407 modules transformed. 31.46 31.46 ERROR x Build failed in 25.84s 31.46 31.46 31.46 ERROR Nuxt Build Error: server/lib/s3.server.ts (11:9): "readFileSync" is not exported by "__vite-browser-external", imported by "server/lib/s3.server.ts". 31.46 file: /src/movingfwd/server/lib/s3.server.ts:11:9 31.46 31.46 9: import { getSignedUrl as s3GetSignedUrl } from '@aws-sdk/s3-request-presigner' 31.46 10: import AWS from 'aws-sdk' 31.46 11: import { readFileSync } from 'node:fs' 31.46 ^ 31.46 12: import { nodeWithDefaults } from '@/lib/default' 31.46 error on import section:
import type { S3Repo } from '@prisma/client'
// import Spaces from 'digitalocean-spaces'
import {
S3,
PutObjectCommand,
ObjectCannedACL,
type PutObjectCommandInput,
} from '@aws-sdk/client-s3'
import { getSignedUrl as s3GetSignedUrl } from '@aws-sdk/s3-request-presigner'
import AWS from 'aws-sdk'
import { readFileSync } from 'node:fs'
import { nodeWithDefaults } from '@/lib/default'

export const getSignedUrl = async (
...
import type { S3Repo } from '@prisma/client'
// import Spaces from 'digitalocean-spaces'
import {
S3,
PutObjectCommand,
ObjectCannedACL,
type PutObjectCommandInput,
} from '@aws-sdk/client-s3'
import { getSignedUrl as s3GetSignedUrl } from '@aws-sdk/s3-request-presigner'
import AWS from 'aws-sdk'
import { readFileSync } from 'node:fs'
import { nodeWithDefaults } from '@/lib/default'

export const getSignedUrl = async (
...
2 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
https://github.com/prisma/prisma/discussions/11929#discussioncomment-9600119 Error: MongoDB error Server selection timeout: No available servers. Topology: { Type: ReplicaSetNoPrimary, Servers: this happen randomly after 2 to 3days of running on production
6 replies
PPrisma
Created by u007 on 5/8/2024 in #help-and-questions
where inside include
hi im using mongodb driver with prisma 5.7.1,
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
const module = await prisma().module.findFirst({
where: {
id: moduleId,
},
include: {
ModuleSources: true,
defaultMqttServer: true,
defaultQstashService: true,
defaultS3Repo: true,
Chat: {
where: { token: 'ywovi8hiam', providerSenderId: 'WHATSAPP60123221812' }
i realise module.Chat seems to return even thou providerSenderId is null, does where condition works inside include?
2 replies
NNuxt
Created by u007 on 6/4/2023 in #❓・help
how to set duration limit for function on vercel?
what is the vercel.json or nuxt config to configure function duration limit or timeout on vercel?
2 replies
NNuxt
Created by u007 on 4/25/2023 in #❓・help
anyone know why im not getting proper type from useNuxtApp() in visual code?
No description
1 replies
NNuxt
Created by u007 on 4/24/2023 in #❓・help
self is not defined
i just upgraded and im trying to use a browser side only package
import { readAndCompressImage } from 'browser-image-resizer'
import { readAndCompressImage } from 'browser-image-resizer'
and my file is called upload.client.ts and my vue component that uses this is named file-input.client.vue, why am i still getting self is not defined?
3 replies