maplibre / maplibre-rs

Experimental Maps for Web, Mobile and Desktop
Apache License 2.0
1.34k stars 77 forks source link

ReferenceError: Can't find variable: Worker #166

Closed maxammann closed 2 months ago

maxammann commented 2 years ago

🤔 Expected Behavior

No errors.

😯 Current Behavior

Executing Rust Futures from JavaScript fails in WebWorkers. The following errors is shown: ReferenceError: Can't find variable: Worker

💁 Possible Solution

Avoid using the polyfill for waitAsync from wasm-bindgen-futures.

🔦 Context

🌍 Your Environment

maxammann commented 2 months ago

Documented per https://github.com/maplibre/maplibre-rs/pull/313