I am adding a feature to my application. The feature works fine in my demo/example (link below -- sidenote: is this an example that you would like in the dioxus examples repo?)
However, in my actual application I get this error at the end of dx bundle:
ERROR Failed to minify js. Falling back to non-minified: failed to bundle javascript with swc
INFO Copying asset (3/4): /.../frontend-dioxus/target/dx/frontend-dioxus/release/web/public/wasm-bindgen/frontend-dioxus.js
And then despite claiming that it copied the js asset, the application doesn't actually work when I open the webpage with this console error: Uncaught (in promise) TypeError: init is not a function. But I have no explanation of specifically what went wrong in the initial error message. Is there some way to get more details? I've narrowed down the error to this line from the demo (again, it works in the demo, just when I copy-paste this function into my actual application and use it, it gives the above error):
https://github.com/rogusdev/dioxus-examples/blob/main/zip-file/src/main.rs#L151
Any thoughts on what could be going wrong? Or what I need to do to get more output to debug this error?
Thanks.
Examples with Dioxus. Contribute to rogusdev/dioxus-examples development by creating an account on GitHub.