Open BearToCode opened 2 years ago
Hmm that's strange. Perhaps something you're using doesn't support WebAssembly? What bundler are you using?
I've not installed any bundler, there should only be a Tauri Bundler for the Rust side of the app (at least that's what I understood reading the documentation).
I've looked for help on the Tauri community and they sent me what should be a list of mime types: https://github.com/tauri-apps/tauri/blob/dev/core/tauri-runtime/src/http/mime_type.rs
If yours is not in the list I can file an issue on their side.
Also: do I need Webpack and Svelte to use the module?
Aha I see. I guess missing support for the mime type could be it, since I haven't seen that error in other situations. You shouldn't need Webpack or Svelte to use the module. The website (kalker.xyz) doesn't use anything like that! The library should basically just provide a regular web component.
Apparently there are ways to import the .wasm that do not check for the mime type:
https://stackoverflow.com/a/52732108/14065064
If you considered applying that change it would be great.
Hello, I'm trying to include the Kalk web component in a Tauri app with a React front-end. However, I keep getting the following error, which comes directly from the component
bundle.js
:That's how I included Kalk:
My project.json looks like that
Your work is really cool and I'd really like to use it in my project.