Sh (@cannnibaldev)
Sh (@cannnibaldev)
Explore posts from servers
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
@mbe52are could you help?
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
no
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
anybody knows how to debug?
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
every time I execute the command I run into this problem
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
$ npm run db:push

> next-auction@0.1.0 db:push
> npx drizzle-kit push --config=drizzle.config.ts

drizzle-kit: v0.21.4
drizzle-orm: v0.30.10

Custom config path was provided, using 'drizzle.config.ts'
Reading config file 'C:\x\y\z\z\next-auction\drizzle.config.ts'
Using 'postgres' driver for database querying
[⣽] Pulling schema from database...C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71069
Object.defineProperties(err2, {
^

TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71069:12)
at errored (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71066:17)
at Socket.data (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71013:9)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)

Node.js v20.11.0
$ npm run db:push

> next-auction@0.1.0 db:push
> npx drizzle-kit push --config=drizzle.config.ts

drizzle-kit: v0.21.4
drizzle-orm: v0.30.10

Custom config path was provided, using 'drizzle.config.ts'
Reading config file 'C:\x\y\z\z\next-auction\drizzle.config.ts'
Using 'postgres' driver for database querying
[⣽] Pulling schema from database...C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71069
Object.defineProperties(err2, {
^

TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71069:12)
at errored (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71066:17)
at Socket.data (C:\x\y\z\z\next-auction\node_modules\drizzle-kit\bin.cjs:71013:9)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)

Node.js v20.11.0
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (C:\Users\husey\Documents\VisualStudioCodeProjects\next-auction\node_modules\drizzle-kit\bin.cjs:71069:12)
at Socket.error2 (C:\Users\husey\Documents\VisualStudioCodeProjects\next-auction\node_modules\drizzle-kit\bin.cjs:71061:7)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
TypeError: Cannot redefine property: query
at Function.defineProperties (<anonymous>)
at queryError (C:\Users\husey\Documents\VisualStudioCodeProjects\next-auction\node_modules\drizzle-kit\bin.cjs:71069:12)
at Socket.error2 (C:\Users\husey\Documents\VisualStudioCodeProjects\next-auction\node_modules\drizzle-kit\bin.cjs:71061:7)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
config file LGTM
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
import { defineConfig } from 'drizzle-kit'
import { env } from './src/env'

export default defineConfig({
dialect:"postgresql",
verbose:true,
strict:true,
dbCredentials:{
url: env.DATABASE_URL
},
out:"./drizzle",
schema:"./src/db/schema.ts"
})
import { defineConfig } from 'drizzle-kit'
import { env } from './src/env'

export default defineConfig({
dialect:"postgresql",
verbose:true,
strict:true,
dbCredentials:{
url: env.DATABASE_URL
},
out:"./drizzle",
schema:"./src/db/schema.ts"
})
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
I don't know whats wrong
12 replies
DTDrizzle Team
Created by Sh (@cannnibaldev) on 6/2/2024 in #help
Push doesn't work
it only shows "Pulling schema from database..." for 15 minutes
12 replies
DDeno
Created by Sh (@cannnibaldev) on 3/21/2024 in #help
Help with deployment
No description
4 replies
DDeno
Created by Sh (@cannnibaldev) on 3/21/2024 in #help
Help with deployment
name: Deploy
on:
push:
branches: [master]
pull_request:
branches: master

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Build step
run: "deno task build" # 📝 Update the build command(s) if necessary

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "********" # 📝 Update the deploy project name if necessary
entrypoint: "./main.ts" # 📝 Update the entrypoint if necessary
name: Deploy
on:
push:
branches: [master]
pull_request:
branches: master

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Build step
run: "deno task build" # 📝 Update the build command(s) if necessary

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "********" # 📝 Update the deploy project name if necessary
entrypoint: "./main.ts" # 📝 Update the entrypoint if necessary
this my deploy.yml file
4 replies
DDeno
Created by Sh (@cannnibaldev) on 3/21/2024 in #help
How to use Tailwind css plugins in FRESH?
Thanks it helped!
4 replies
DDeno
Created by Sh (@cannnibaldev) on 3/21/2024 in #help
How to use Tailwind css plugins in FRESH?
how can I set up daisyui plugin ? e.g
4 replies