Skip to content

Build your personal knowledge base with Trilium Notes

fix(nx/client): missing runtime chunk

Elian Doranb213f9940e25
diff --git a/apps/server/src/views/desktop.ejs b/apps/server/src/views/desktop.ejs
index 1e7112e78b..b0de6cf888 100644
--- a/apps/server/src/views/desktop.ejs
+++ b/apps/server/src/views/desktop.ejs
@@ -68,6 +68,7 @@
$("body").show();
</script>
+<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/desktop.js" crossorigin type="module"></script>
<link rel="stylesheet" type="text/css" href="<%= assetPath %>/node_modules/boxicons/css/boxicons.min.css">
diff --git a/apps/server/src/views/login.ejs b/apps/server/src/views/login.ejs
index d013b1b156..1bda4741ee 100644
--- a/apps/server/src/views/login.ejs
+++ b/apps/server/src/views/login.ejs
@@ -75,6 +75,8 @@
<% } %>
</div>
</div>
+
+<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/login.js" crossorigin type="module"></script>
</body>
diff --git a/apps/server/src/views/mobile.ejs b/apps/server/src/views/mobile.ejs
index 3edaec86ae..a7f7643a55 100644
--- a/apps/server/src/views/mobile.ejs
+++ b/apps/server/src/views/mobile.ejs
@@ -118,6 +118,7 @@
<link href="<%= assetPath %>/stylesheets/tree.css" rel="stylesheet">
<script src="<%= assetPath %>/node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js"></script>
+<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/mobile.js" crossorigin type="module"></script>
<link href="api/fonts" rel="stylesheet">
diff --git a/apps/server/src/views/set_password.ejs b/apps/server/src/views/set_password.ejs
index 4f29923202..9a2b40fd4c 100644
--- a/apps/server/src/views/set_password.ejs
+++ b/apps/server/src/views/set_password.ejs
@@ -46,6 +46,7 @@
</div>
</div>
+<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/set_password.js" crossorigin type="module"></script>
</body>
diff --git a/apps/server/src/views/setup.ejs b/apps/server/src/views/setup.ejs
index 0063792600..59c58dda14 100644
--- a/apps/server/src/views/setup.ejs
+++ b/apps/server/src/views/setup.ejs
@@ -171,6 +171,7 @@
<script src="<%= assetPath %>/node_modules/jquery/dist/jquery.min.js"></script>
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
+<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/setup.js" crossorigin type="module"></script>
<link href="<%= assetPath %>/stylesheets/theme-light.css" rel="stylesheet" />
<link href="<%= assetPath %>/stylesheets/theme-next.css" rel="stylesheet" />