Skip to content

Example fails to load: Uncaught (in promise) LinkError #8

Open
@jdm204

Description

@jdm204

Hi,

Really like Yew so far, but I keep running into a problem where when I tweak something small in the html! macro, and then suddenly see nothing in the browser anymore. Typically this has been something like changing <input /> to ` - suddently nothing renders and I get a 'LinkError' in the console.

I struggled to get a good reproducible example until I tried starting from scratch with this repo and I get a similar problem - no "Hello world" displayed in the browser, and in the browser console I get: Uncaught (in promise) LinkError: import object field '__wbindgen_closure_wrapper287' is not a Function.

Reproduction:

git clone https://github.com/yewstack/yew-wasm-pack-minimal
wasm-pack build --target web
rollup ./main.js --format iife --file ./pkg/bundle.js
python -m http.server 8080

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions