typebot.io
typebot.io copied to clipboard
Can't self-host the Typebot on Windows + Docker
Hi
Followed the instructions as per https://github.com/baptisteArno/typebot.io#local-setup
However when I run pnpm dev I'm getting the following errors in my console window.
I'm using Node v17.3.0 (tried 18 too)
@typebot.io/prisma:dev: Executing for PostgreSQL schema
builder:dev: ../../scripts/env.sh: line 37: $'\r': command not found
viewer:dev: env.sh loaded
builder:dev: env.sh loaded
viewer:dev: ../../scripts/env.sh: line 37: $'\r': command not found
viewer:dev: ../../scripts/env.sh: line 39: $'\r': command not found
builder:dev: ../../scripts/env.sh: line 39: $'\r': command not found
typebot-js:dev: CLI Building entry: src/index.ts
bot-engine:dev: CLI Building entry: src/index.ts
typebot-js:dev: CLI Using tsconfig: tsconfig.json
bot-engine:dev: CLI Using tsconfig: tsconfig.json
bot-engine:dev: CLI tsup v6.5.0
bot-engine:dev: CLI Using tsup config: C:\Dev\typebot.io\packages\deprecated\bot-engine\tsup.config.js
bot-engine:dev: CLI Running in watch mode
typebot-js:dev: CLI tsup v6.5.0
typebot-js:dev: CLI Using tsup config: C:\Dev\typebot.io\packages\deprecated\typebot-js\tsup.config.js
typebot-js:dev: CLI Running in watch mode
typebot-js:dev: CLI Target: node14
typebot-js:dev: ESM Build start
typebot-js:dev: CJS Build start typebot-js:dev: IIFE Build start
bot-engine:dev: CLI Target: es6
bot-engine:dev: ESM Build start
bot-engine:dev: CJS Build start
builder:dev: ../../scripts/env.sh: line 44: $'\r': command not found
viewer:dev: ../../scripts/env.sh: line 44: $'\r': command not found
typebot-js:dev: ESM dist\index.mjs 20.42 KB
typebot-js:dev: ESM dist\index.mjs.map 37.15 KB
typebot-js:dev: ESM ⚡️ Build success in 1059ms
typebot-js:dev: IIFE dist\index.global.js 22.50 KB
typebot-js:dev: IIFE dist\index.global.js.map 37.50 KB
typebot-js:dev: IIFE ⚡️ Build success in 1075ms
typebot-js:dev: CJS dist\index.js 21.79 KB typebot-js:dev: CJS dist\index.js.map 37.25 KB
typebot-js:dev: CJS ⚡️ Build success in 1079ms
typebot-js:dev: CLI Watching for changes in "."
typebot-js:dev: CLI Ignoring changes in "**/{.git,node_modules}/**" | "dist"
viewer:dev: ../../scripts/env.sh: line 49: $'\r': command not found
viewer:dev: ../../scripts/env.sh: line 51: syntax error near unexpected token `$'{\r''
' viewer:dev: ../../scripts/env.sh: line 51: `__green() {
builder:dev: ../../scripts/env.sh: line 49: $'\r': command not found
builder:dev: ../../scripts/env.sh: line 51: syntax error near unexpected token `$'{\r''
' builder:dev: ../../scripts/env.sh: line 51: `__green() {
viewer:dev: ELIFECYCLE Command failed with exit code 2.
builder:dev: ELIFECYCLE Command failed with exit code 2.
Does it fix the issue if you change:
"dev": "cross-env ENVSH_ENV=.env.local bash ../../scripts/env.sh next dev -p 3000",
to
"dev": "cross-env ENVSH_ENV=.env.local sh ../../scripts/env.sh next dev -p 3000",
in both apps/builder/package.json and apps/viewer/package.json?
You can try starting application in gitbash terminal instead of power shell or cmd