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
It is possible to import the same module/name pair multiple times [...] However, embedders are not required to support such overloading
The Wasm Component Model in particular does not support duplicate imports, which means that WASI preview1 modules compiled with Grain cannot be converted to components with the preview1 adapter.
To add to what @spotandjake mentioned, we have successfully used the adapter to make components. Let me know if you want some pointers!
We've been aware of this issue but have been slow to fix it because of the available workaround. This is something we can resolve in the next major release.
Grain produces Wasm modules with duplicate imports. This is permitted by the Wasm core spec, but with caveats:
https://webassembly.github.io/spec/core/syntax/modules.html#imports
The Wasm Component Model in particular does not support duplicate imports, which means that WASI preview1 modules compiled with Grain cannot be converted to components with the preview1 adapter.
Example:
The text was updated successfully, but these errors were encountered: