Replies: 4 comments
-
Oh, I see Not sure if this is correct, but it seems to help, now diff --git a/packages/fullstack-server/src/config.rs b/packages/fullstack-server/src/config.rs
index e3739385ea..e51a0d952a 100644
--- a/packages/fullstack-server/src/config.rs
+++ b/packages/fullstack-server/src/config.rs
@@ -332,6 +332,8 @@
IndexHtml::new(&index_html, self.root_id.unwrap_or("main"))
.expect("Failed to parse index.html from public directory"),
);
+ } else {
+ self.index = Some(IndexHtml::default());
}
} else if self.index.is_none() {
self.index = Some(IndexHtml::default()); ... except we kind of neglected to build or attempt to include the wasm. So maybe that isn't correct. |
Beta Was this translation helpful? Give feedback.
-
The errors when trying Now it is building both parts correctly. But it isn't including a reference to the wasm in the index.html. |
Beta Was this translation helpful? Give feedback.
-
OK, So I think Investigating. |
Beta Was this translation helpful? Give feedback.
-
Ok, so all of this might be self-inflicted. :-) Previously - maybe because of something else I did wrong - I needed to set DIOXUS_PUBLIC_PATH (#4803). Seems this isn't required anymore. LATER: probably my DIOXUS_PUBLIC_PATH broke because I set |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the correct command?
I tried:
But based on the errors, I think it is trying to compile backend code using wasm, which is not correct.
I also tried:
Which appears to be better, but then I get the error:
Which seems to correspond with not being able to find the index.html file.
So what is the correct command now?
(I thought I asked about this somewhere else; but I can't find that now)
Beta Was this translation helpful? Give feedback.
All reactions