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

[BUG]: Issues with running drizzle studio in github codespaces #3595

Open
1 task done
juicylime opened this issue Nov 22, 2024 · 0 comments
Open
1 task done

[BUG]: Issues with running drizzle studio in github codespaces #3595

juicylime opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@juicylime
Copy link

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.36.3

What version of drizzle-kit are you using?

0.28.1

Other packages

No response

Describe the Bug

When trying to run bunx drizzle-kit studio in github codespaces I get the following error. I tested on my local machine and was able to get studio working.

root@107aeaa83220:/workspaces/topics-backend# bunx drizzle-kit studio
[bun] Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
No config path provided, using default 'drizzle.config.ts'
Reading config file '/workspaces/topics-backend/drizzle.config.ts'
Failed to find Response internal state key
Using 'pg' driver for database querying

 Warning  Drizzle Studio is currently in Beta. If you find anything that is not working as expected or should be improved, feel free to create an issue on GitHub: https://github.com/drizzle-team/drizzle-kit-mirror/issues/new or write to us on Discord: https://discord.gg/WcRKz2FFxN

Drizzle Studio is up and running on https://local.drizzle.studio
84299 |         const accepted = ctx.req.header("Accept-Encoding");
84300 |         const encoding = (options == null ? void 0 : options.encoding) ?? ENCODING_TYPES.find((encoding2) => accepted == null ? void 0 : accepted.includes(encoding2));
84301 |         if (!encoding || !ctx.res.body) {
84302 |           return;
84303 |         }
84304 |         const stream = new CompressionStream(encoding);
                                   ^
ReferenceError: Can't find variable: CompressionStream
      at /workspaces/topics-backend/node_modules/drizzle-kit/bin.cjs:84304:28

I followed the steps here https://gist.github.com/KyGuy2002/201c0712e1bcd5c5a3d7d588496710fc:

  1. Run bunx drizzle-kit studio in codespaces
  2. Forward port 4983 and make it public
  3. Access https://local.drizzle.studio/?host=your-codespace-name-4983.app.github.dev&port=443

Runtime env: Bun 1.1.36

@juicylime juicylime added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant