-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
JSON import crash on client side #288
Comments
Ultra really just renders html page in response... > curl http://localhost:8000/_ultra/compiler/src/shared/api/supabase/schema.generated.json
<!DOCTYPE html><html lang="en" data-mantine-color-scheme="dark"><head><meta charSet="utf-8"/>
<title>Ultra</title><meta name="viewport" content="width=device-width, initial-scale=1"/><lin
k rel="shortcut icon" href="/favicon.ico"/><script data-mantine-script="true">try {
var _colorScheme = window.localStorage.getItem("mantine-color-scheme-value");
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "
auto" ? _colorScheme : "dark"; |
At least this line needs to be changed to support json: lib/middleware/compiler.ts:const isCompilerTarget = [".ts", ".tsx", ".js", ".jsx"].includes(extension); |
Deployed my Ultra fork with fix JSON import fix at Can't test with production build due to |
Seems to work on prod, preparing PR |
PR #293 |
Good work on providing a fix. I've ran into the same issue, this seems really essential to have resolved. |
Works on server side. On client side causes error
The text was updated successfully, but these errors were encountered: