You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bunx jco transpile cowsay.wasm -o dist
thread '<unnamed>' panicked at crates/js-component-bindgen/src/ts_bindgen.rs:159:50:
not yet implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
(jco transpile) RuntimeError: unreachable
at js_component_bindgen_component.wasm.__rust_start_panic (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43527]:0x10844a8)
at js_component_bindgen_component.wasm.rust_panic (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43520]:0x108403a)
at js_component_bindgen_component.wasm._ZN3std9panicking20rust_panic_with_hook17h002a9d757cec9266E (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43518]:0x1083ea0)
at js_component_bindgen_component.wasm._ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17h5e11e16f0cbe0dd6E (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43503]:0x1083101)
at js_component_bindgen_component.wasm._ZN3std3sys9backtrace26__rust_end_short_backtrace17h34d7c06dcd4fe40dE (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43502]:0x1083040)
at js_component_bindgen_component.wasm.rust_begin_unwind (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43510]:0x10837f0)
at js_component_bindgen_component.wasm._ZN4core9panicking9panic_fmt17h7e49d43cccf0228eE (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43665]:0x1092409)
at js_component_bindgen_component.wasm._ZN4core9panicking5panic17h5b9417a441e14606E (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[43677]:0x1093c1f)
at js_component_bindgen_component.wasm._ZN20js_component_bindgen10ts_bindgen10ts_bindgen17hab2dd0c35ae02bc7E (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[4482]:0x234b85)
at js_component_bindgen_component.wasm._ZN20js_component_bindgen9transpile17h41ffb8ce162c7f32E (wasm://wasm/js_component_bindgen_component.wasm-19499d82:wasm-function[4516]:0x245b3b)
error: script "transpile" exited with code 1
error: script "build" exited with code 1
The text was updated successfully, but these errors were encountered:
Resources are only supported nested inside of interfaces currently - this new feature supporting top-level resource world items would be great to support.
I would really love to see support for WIT resources https://component-model.bytecodealliance.org/design/wit.html#resources . I tried to use them and received the "not yet implemented" error. My
cowsay.wit
just added aresource
:The error looks to be raised from this
todo
:jco/crates/js-component-bindgen/src/ts_bindgen.rs
Lines 159 to 160 in f0eabad
The text was updated successfully, but these errors were encountered: