typebot.io
typebot.io copied to clipboard
Can't run Typebot on a Github Codespace
Command that was executed: pnpm dev
Can you paste the entire console log?
`@igorroder ➜ /workspaces/typebot.io (main) $ pnpm i Scope: all 17 workspace projects Lockfile is up to date, resolution step is skipped Packages: +2294 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
╭─────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 7.29.1 → 8.0.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.0.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰─────────────────────────────────────────────────────────────────╯
Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /workspaces/.pnpm-store/v3 Virtual store is at: node_modules/.pnpm Downloading registry.npmjs.org/next/13.2.4: 10.4 MB/10.4 MB, done Downloading registry.npmjs.org/typescript/4.9.5: 11.6 MB/11.6 MB, done Downloading registry.npmjs.org/prisma/4.11.0: 7.18 MB/7.18 MB, done Downloading registry.npmjs.org/aws-sdk/2.1334.0: 10.2 MB/10.2 MB, done Downloading registry.npmjs.org/turbo-linux-64/1.8.3: 11.8 MB/11.8 MB, done Downloading registry.npmjs.org/monaco-editor/0.31.1: 14 MB/14 MB, done Downloading registry.npmjs.org/typescript/4.9.4: 11.6 MB/11.6 MB, done Downloading registry.npmjs.org/@next/swc-linux-x64-musl/13.2.4: 32.7 MB/32.7 MB, done Downloading registry.npmjs.org/@next/swc-linux-x64-gnu/13.2.4: 32.7 MB/32.7 MB, done Progress: resolved 2294, reused 0, downloaded 2278, added 2294, done node_modules/.pnpm/[email protected]/node_modules/core-js-pure: Running postinstall script, done in 329ms node_modules/.pnpm/[email protected]/node_modules/core-js: Running postinstall script, done in 351ms node_modules/.pnpm/@[email protected]/node_modules/@prisma/engines: Running postinstall script, done in 2.4s node_modules/.pnpm/@[email protected]/node_modules/@sentry/cli: Running install script, done in 2s node_modules/.pnpm/[email protected]/node_modules/postman-code-generators: Running postinstall script, done in 39.5s node_modules/.pnpm/[email protected]/node_modules/esbuild: Running postinstall script, done in 1.1s node_modules/.pnpm/[email protected]/node_modules/esbuild: Running postinstall script, done in 1.1s node_modules/.pnpm/[email protected]/node_modules/turbo: Running postinstall script, done in 982ms node_modules/.pnpm/[email protected]/node_modules/prisma: Running preinstall script, done in 202ms node_modules/.pnpm/[email protected]/node_modules/prisma: Running install script, done in 132ms node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client: Running postinstall script, done in 1s
devDependencies:
- cross-env 7.0.3
- cz-emoji 1.3.2-canary.2
- husky 8.0.3
- turbo 1.8.3
. prepare$ husky install │ husky - Git hooks installed └─ Done in 119ms Done in 1m 57.2s @igorroder ➜ /workspaces/typebot.io (main) $ pnpm dev
[email protected] dev /workspaces/typebot.io pnpm docker:up && cross-env NEXT_PUBLIC_E2E_TEST=false turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache
[email protected] docker:up /workspaces/typebot.io docker compose -f docker-compose.dev.yml up -d && sleep 5
[+] Running 3/3
⠿ Container typebotio-postgres-1 Running 0.0s
⠿ Container typebotio-minio-1 Running 0.0s
⠿ Container typebotio-createbuckets-1 Started 2.2s
• Packages in scope: @typebot.io/emails, @typebot.io/js, @typebot.io/lib, @typebot.io/prisma, @typebot.io/react, @typebot.io/schemas, @typebot.io/tsconfig, bot-engine, builder, eslint-config-custom, typebot-js, viewer
• Running dev in 12 packages
• Remote caching disabled
@typebot.io/prisma:db:push: cache bypass, force executing 8e41cc81c4731bbd
@typebot.io/prisma:db:generate: cache bypass, force executing 4865e58f0439726d
@typebot.io/prisma:db:generate:
@typebot.io/prisma:db:generate: > @typebot.io/[email protected] db:generate /workspaces/typebot.io/packages/prisma
@typebot.io/prisma:db:generate: > tsx scripts/db-generate.ts
@typebot.io/prisma:db:generate:
@typebot.io/prisma:db:push:
@typebot.io/prisma:db:push: > @typebot.io/[email protected] db:push /workspaces/typebot.io/packages/prisma
@typebot.io/prisma:db:push: > tsx scripts/db-push.ts
@typebot.io/prisma:db:push:
@typebot.io/prisma:db:generate: Executing for PostgreSQL schema
@typebot.io/prisma:db:push: Executing for PostgreSQL schema
@typebot.io/prisma:db:generate: ┌─────────────────────────────────────────────────────────┐
@typebot.io/prisma:db:generate: │ Update available 4.11.0 -> 4.12.0 │
@typebot.io/prisma:db:generate: │ Run the following to update │
@typebot.io/prisma:db:generate: │ npm i --save-dev prisma@latest │
@typebot.io/prisma:db:generate: │ npm i @prisma/client@latest │
@typebot.io/prisma:db:generate: └─────────────────────────────────────────────────────────┘
@typebot.io/prisma:db:generate:
@typebot.io/prisma:db:push: Environment variables loaded from .env
@typebot.io/prisma:db:push: Prisma schema loaded from postgresql/schema.prisma
@typebot.io/prisma:db:push: Datasource "db": PostgreSQL database "typebot", schema "public" at "localhost:5432"
@typebot.io/prisma:db:push:
@typebot.io/prisma:db:push: 🚀 Your database is now in sync with your Prisma schema. Done in 3.71s
@typebot.io/prisma:db:push:
@typebot.io/prisma:db:push:
viewer:dev: cache bypass, force executing ed1e9acb8796a0f0
@typebot.io/js:dev: cache bypass, force executing 4c7f48d6e60c8d43
typebot-js:dev: cache bypass, force executing ddf291cc1202ce23
@typebot.io/react:dev: cache bypass, force executing f6cc5e264a8e9c4d
bot-engine:dev: cache bypass, force executing 13c34cf4fce7a128
@typebot.io/prisma:dev: cache bypass, force executing 600db4a1b379c577
builder:dev: cache bypass, force executing 5ea2d23ac9b10865
@typebot.io/react:dev: WARN Issue while reading "/workspaces/typebot.io/packages/embeds/react/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
@typebot.io/js:dev: WARN Issue while reading "/workspaces/typebot.io/packages/embeds/js/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
builder:dev:
builder:dev: > [email protected] dev /workspaces/typebot.io/apps/builder
builder:dev: > cross-env ENVSH_ENV=.env.local bash ../../scripts/env.sh next dev -p 3000
builder:dev:
@typebot.io/react:dev:
@typebot.io/react:dev: > @typebot.io/[email protected] dev /workspaces/typebot.io/packages/embeds/react
@typebot.io/react:dev: > rollup --watch --config rollup.config.js
@typebot.io/react:dev:
@typebot.io/js:dev:
@typebot.io/js:dev: > @typebot.io/[email protected] dev /workspaces/typebot.io/packages/embeds/js
@typebot.io/js:dev: > rollup --watch --config rollup.config.js
@typebot.io/js:dev:
typebot-js:dev:
typebot-js:dev: > [email protected] dev /workspaces/typebot.io/packages/deprecated/typebot-js
typebot-js:dev: > tsup --watch
typebot-js:dev:
viewer:dev:
viewer:dev: > [email protected] dev /workspaces/typebot.io/apps/viewer
viewer:dev: > cross-env ENVSH_ENV=.env.local bash ../../scripts/env.sh next dev -p 3001
viewer:dev:
bot-engine:dev:
bot-engine:dev: > [email protected] dev /workspaces/typebot.io/packages/deprecated/bot-engine
bot-engine:dev: > tsup --watch
bot-engine:dev:
@typebot.io/prisma:dev:
@typebot.io/prisma:dev: > @typebot.io/[email protected] dev /workspaces/typebot.io/packages/prisma
@typebot.io/prisma:dev: > tsx scripts/studio.ts
@typebot.io/prisma:dev:
builder:dev: ../../scripts/env.sh: line 37: $'\r': command not found
builder:dev: env.sh loaded
builder:dev: ../../scripts/env.sh: line 39: $'\r': command not found
builder:dev: ../../scripts/env.sh: line 44: $'\r': command not found
builder:dev: ../../scripts/env.sh: line 49: $'\r': command not found
builder:dev: ../../scripts/env.sh: line 51: syntax error near unexpected token $'{\r'' 'uilder:dev: ../../scripts/env.sh: line 51:
__green() {
builder:dev: ELIFECYCLE Command failed with exit code 2.
viewer:dev: ../../scripts/env.sh: line 37: $'\r': command not found
viewer:dev: env.sh loaded
viewer:dev: ../../scripts/env.sh: line 39: $'\r': command not found
viewer:dev: ../../scripts/env.sh: line 44: $'\r': command not found
builder:dev: ERROR: command finished with error: command (/workspaces/typebot.io/apps/builder) pnpm run dev exited (1)
bot-engine:dev: ELIFECYCLE Command failed.
@typebot.io/prisma:dev: ELIFECYCLE Command failed.
@typebot.io/js:dev: ELIFECYCLE Command failed.
typebot-js:dev: ELIFECYCLE Command failed.
@typebot.io/react:dev: ELIFECYCLE Command failed.
viewer:dev: ELIFECYCLE Command failed.
command (/workspaces/typebot.io/apps/builder) pnpm run dev exited (1)
Tasks: 2 successful, 3 total Cached: 0 cached, 3 total Time: 11.973s
ERROR run failed: command exited (1) ELIFECYCLE Command failed with exit code 1. @igorroder ➜ /workspaces/typebot.io (main) $ `
You maybe don't have bash
installed? Can you install it and try again?
The bash
is installed, I'm using GitHub Codespaces. But I tried it on my desktop and it showed the same error.
That's strange I get this error when launching dev on a Github Codespace:
pnpm dev
> [email protected] dev /workspaces/typebot.io
> pnpm docker:up && cross-env NEXT_PUBLIC_E2E_TEST=false turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache
> [email protected] docker:up /workspaces/typebot.io
> docker compose -f docker-compose.dev.yml up -d && sleep 5
[+] Running 1/3
⠿ Container typebotio-minio-1 Starting 0.6s
⠿ Container typebotio-createbuckets-1 Created 0.0s
⠿ Container typebotio-postgres-1 Starting 0.6s
Error response from daemon: connection error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout": unavailable
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
Don't you have the same issue?
~~💎 $20 bounty created by typebot~~
~~🙋 If you start working on this, comment /attempt #432
to notify everyone~~
~~👉 To claim this bounty, submit a pull request that includes the text /claim #432
somewhere in its body~~
~~📝 Before proceeding, please make sure you can receive payouts in your country~~
~~💵 Payment arrives in your account 2-5 days after the bounty is rewarded~~
~~💯 You keep 100% of the bounty award~~
~~🙏 Thank you for contributing to baptisteArno/typebot.io!~~
Attempt | Started (GMT+0) | Solution |
---|---|---|
🔴 @evoxf1 | Oct 16, 2023, 2:40:20 PM | WIP |
🟢 @vchiranjeeviak | Oct 25, 2023, 2:12:11 PM | WIP |
/attempt #432
@prateekkalra: We appreciate your enthusiasm but since you already have 2 active bounty attempts, we're going to keep this open for other contributors to attempt. 🫡
@igorroder I tried to reproduce this in code spaces. I didn't get this issue. Steps I followed:
- Create a .env file and copy items in .env.dev.example
-
pnpm i
-
pnpm dev
Can you confirm that these are the steps you followed as well so that I can try to reproduce the issue?