Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.stdin.setRawMode is not a function #3

Open
oscar-b opened this issue Jan 23, 2025 · 1 comment
Open

process.stdin.setRawMode is not a function #3

oscar-b opened this issue Jan 23, 2025 · 1 comment

Comments

@oscar-b
Copy link

oscar-b commented Jan 23, 2025

Hi!

Tried setting this up in a docker container, to get quick access to a sqlite file running on a server.

Nothing fancy, basically just:

  db-admin:
    image: node:22-alpine
    command: npx -y @outerbase/studio /data/data.sqlite

However, it fails with

TypeError: process.stdin.setRawMode is not a function
    at q (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:797)
    at Command.<anonymous> (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:2957)
    at Command.listener [as _actionHandler] (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:542:17)
    at /root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1502:14
    at Command._chainOrCall (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1386:12)
    at Command._parseCommand (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1501:27)
    at Command.parse (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1064:10)
    at Object.<anonymous> (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:3034)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)

I assume it needs to check if it has a tty.

@oscar-b
Copy link
Author

oscar-b commented Jan 23, 2025

Workaround for now, added tty: true to the docker-compose definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant