Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jdm204 opened this issue Aug 15, 2020 · 0 comments
Open

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

jdm204 opened this issue Aug 15, 2020 · 0 comments

Comments

@jdm204
Copy link

jdm204 commented Aug 15, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant