-
Notifications
You must be signed in to change notification settings - Fork 9
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
Studio presents an empty page on all browsers #7
Comments
In my case, "crypto.randomUUID is not a function" error shown on console. Same on Chrome, Brave. |
I would like to add that there is no error presented in the expo console neither in the Android Studio Logcat for me. |
Same here! White screen, no network or console errors |
I had the same error, but then I realized it was coming from a 1Password extensions. So this does not seem to be related (at least in my case). Deactivating the extension made the error disappear. Now I have a blank screen without any error... Edit: In fact, I just realized, it is a Loading Screen with tini, tiny loading spinner at the center... and it is doing something, looking at the WebSocket connection. But it doesn't seem to receive anything. |
I’m experiencing the same issue. When I open the app, the browser displays an empty page with a small loading spinner in the center. There are no network errors or console errors, but after a few seconds, I encounter an error in the terminal when I open the tools: Versions:
|
Make sure
|
That was it! Thanks! I did use |
Perfect! Thank you. As @florentmsl mentioned, I was also using drizzle(actualDatabase, ...) as the wrong db source to studio. |
I'm getting the same. A blank screen without any error, or almost blank, it has the tiniest spinner. No errors anywhere and no data returned from ws network. |
Did you see @florentmsl solution? This is the right way, passing the SQLite db straight to const actualDatabse = SQLite.openDatabaseSync("db"); Not this one: const expoSqlite = SQLite.openDatabaseSync("db");
const wrongDatabase= drizzle(expoSqlite, { schema: schema.default }); |
Yes, I tried that and unfortunately it did not resolve my issue. I'm afk today but will work on a minimal repro tomorrow and link. Sorry. |
No worries, we all need help at some point. You can share the repro. |
I managed to resolve the issue through the creation on a minimal reproduction. The issue for me ended up being that I need to upgrade to Thanks for your time. |
You are welcome. |
In my case, the problem is a that I have a system to manage the database and a hook to provide the database like this: ...
import { useDrizzleStudio } from 'expo-drizzle-studio-plugin';
...
export default function App() {
const db = useDb();
useDrizzleStudio(db);
return (
...
)
} And my custom hook returns
|
I just opened this PR to offer a possible fix for this issue: #8 |
Thanks, I ran into this same issue and your solution resolved it for me. Unfortunately, |
Had the same problem with a blank screen but have it working now. import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { Drawer } from "expo-router/drawer";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { useDrizzleStudio } from "expo-drizzle-studio-plugin";
import * as SQLite from "expo-sqlite";
const reports = SQLite.openDatabaseSync("reports.db");
//My database is called reports
const Layout = () => {
useDrizzleStudio(reports);
return (
<GestureHandlerRootView>
<Drawer
screenOptions={{ |
Still having the same issue Any help? |
I have experienced the same issue but resolved it like this:-
|
As other users reported at the end of the #4 thread, the plugin is presenting an empty page to the user. I've tested with Chrome, Edge, Brave and Firefox with the same response as the picture above.
Expo doctor did not report any issues with dependencies in my project. I followed the instructions in the README.
This is my expo-info:
expo-env-info 1.2.1 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 18.20.4 - ~\AppData\Local\fnm_multishells\39820_1733703331795\node.EXE
npm: 10.9.0 - ~\AppData\Local\fnm_multishells\39820_1733703331795\npm.CMD
SDKs:
Android SDK:
API Levels: 34, 35
Build Tools: 34.0.0, 35.0.0
System Images: android-24 | Google Play Intel x86 Atom, android-35 | Google Play Intel x86_64 Atom
IDEs:
Android Studio: AI-242.23339.11.2421.12550806
npmPackages:
babel-preset-expo: ~11.0.0 => 11.0.15
expo: ~51.0.39 => 51.0.39
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
react-native-web: ~0.19.6 => 0.19.12
Expo Workflow: bare
The text was updated successfully, but these errors were encountered: