-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
I have an error that web pack can't handle my .wasm file when I have compiled it with rust and in development mode. With release it's working. Maybe it's related to this problem? #918
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s
warning: the following packages contain code that will be rejected by a future version of Rust: anymap v1.0.0-beta.2
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO]: ⬇️ Installing wasm-bindgen...
[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨ Done in 9.29s
[INFO]: 📦 Your wasm pkg is ready to publish at /Users/roba/Code/Exolynk/webapp/pkg.
✅ Your crate has been correctly compiled
Failed to decode custom "name" section @140981775; ignoring (Maximum call stack size exceeded).
assets by status 15 MiB [cached] 473 assets
assets by status 31.8 MiB [compared for emit]
assets by path pdfjs-4/ 16.6 MiB 372 assets
assets by path *.js 11.3 MiB 271 assets
assets by path leaflet/ 2.86 MiB 12 assets
assets by path favicon/ 66 KiB
assets by path favicon/*.png 43.9 KiB 6 assets
+ 5 assets
assets by path fonts/*.ttf 998 KiB
asset fonts/Poppins-ExtraLightItalic.ttf 182 KiB [compared for emit] [from: static/fonts/Poppins-ExtraLightItalic.ttf] [copied]
+ 5 assets
+ 4 assets
assets by status 24.2 MiB [emitted]
asset index.js 23.9 MiB [emitted] (name: index)
asset pkg_index_js.js 252 KiB [emitted]
runtime modules 8.47 KiB 14 modules
javascript modules 9.1 MiB 1187 modules
json modules 8.94 MiB
modules by path ./node_modules/@ui5/webcomponents-localization/dist/ 5.25 MiB 76 modules
modules by path ./node_modules/@ui5/webcomponents/dist/ 1.68 MiB 63 modules
modules by path ./node_modules/@ui5/webcomponents-fiori/dist/ 624 KiB 63 modules
modules by path ./node_modules/@ui5/webcomponents-icons/dist/ 823 KiB 53 modules
modules by path ./node_modules/@ui5/webcomponents-theming/dist/ 606 KiB 12 modules
asset modules 121 KiB
modules by mime type image/svg+xml 17.6 KiB 14 modules
modules by mime type image/png 103 KiB
data:image/png;base64,iVBORw0KGgoAAAAN.. 31.3 KiB [built] [code generated]
+ 2 modules
./pkg/index_bg.wasm 40 bytes (javascript) 134 MiB (webassembly) [built] [code generated] [1 error]
ERROR in ./pkg/index_bg.wasm
Module parse failed: Unexpected section: 0x7
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Error: Unexpected section: 0x7
at parseSection (/Users/roba/Code/Exolynk/webapp/node_modules/webpack/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js:1474:79)
at Object.decode (/Users/roba/Code/Exolynk/webapp/node_modules/webpack/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js:1889:25)
at decode (/Users/roba/Code/Exolynk/webapp/node_modules/webpack/node_modules/@webassemblyjs/wasm-parser/lib/index.js:253:21)
at WebAssemblyParser.parse (/Users/roba/Code/Exolynk/webapp/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyParser.js:61:19)
at /Users/roba/Code/Exolynk/webapp/node_modules/webpack/lib/NormalModule.js:1310:19
at processResult (/Users/roba/Code/Exolynk/webapp/node_modules/webpack/lib/NormalModule.js:939:11)
at /Users/roba/Code/Exolynk/webapp/node_modules/webpack/lib/NormalModule.js:1037:5
at /Users/roba/Code/Exolynk/webapp/node_modules/loader-runner/lib/LoaderRunner.js:407:3
at iterateNormalLoaders (/Users/roba/Code/Exolynk/webapp/node_modules/loader-runner/lib/LoaderRunner.js:233:10)
at /Users/roba/Code/Exolynk/webapp/node_modules/loader-runner/lib/LoaderRunner.js:224:4
@ ./pkg/index.js 1:0-40 4:15-19 5:0-21
@ ./js/index.js 1:0-25
webpack 5.97.1 compiled with 1 error in 13655 ms
Metadata
Metadata
Assignees
Labels
No labels