Closed Seantourage closed 1 year ago
I also get a white page, same setup However in my web console I see:
Loading failed for the module with source “http://localhost:3000/app/assets/index-d63ed595.js”. [app:8:1](http://localhost:3000/app/)
Loading module from “http://localhost:3000/app/assets/index-d63ed595.js” was blocked because of a disallowed MIME type (“text/plain”).
Can confirm @fkunn1326 solution fixed it
diff --git a/modules/main.py b/modules/main.py
index bafa4c1..4542d5b 100644
--- a/modules/main.py
+++ b/modules/main.py
@@ -11,6 +11,10 @@ from . import config, runners
from .api.api_router import api
from .frontend import frontend
from .shared import ROOT_DIR
+import mimetypes
+
+mimetypes.init()
+mimetypes.add_type("application/javascript", ".js")
def custom_generate_unique_id(route: APIRoute):
Windows 11 node.js (recommended version is 18) pnpm python 3.10 pip CUDA cuDNN < 8.6.0 TensorRT 8.5.x
When loading the app at http://localhost:3000/app/ get a white page
HTML source
Web Console:
App Console: