create-yew-app icon indicating copy to clipboard operation
create-yew-app copied to clipboard

Doesn't work since last update

Open Nojipiz opened this issue 2 years ago • 3 comments

Creating the project with npx create-yew-app my-app works fine but npm start uses parcel to build stuff and don't start the app in the browser. Here is the console of the browser

Uncaught TypeError: Cannot read properties of undefined (reading 'memory')
    at parcelRequire.../node_modules/parcel-plugin-wasm.rs/wasm-loader.js.fs (wasm-loader.js:859:1)
    at newRequire (static.77de5100.js:47:24)
    at localRequire (static.77de5100.js:53:14)
    at parcelRequire.0 (wasm-loader.js:904:1)
    at newRequire (static.77de5100.js:47:24)
    at static.77de5100.js:81:7
    at static.77de5100.js:120:3

Nojipiz avatar Jun 21 '22 19:06 Nojipiz

seems there's something wrong with latest version of wasm-bindgen, can you try to force to use previous version like this in your Cargo.toml

wasm-bindgen = "=0.2.80"

and make sure you have installed previous version of wasm-bindgen-cli

cargo install wasm-bindgen-cli --version 0.2.80

jetli avatar Jun 22 '22 01:06 jetli

Should i leave this issue open in case someone has the same problem?

Nojipiz avatar Jun 22 '22 02:06 Nojipiz

Yes, keep this open, until wasm-bindgen is fixed or any better way to resolve this. I may open an issue to wasm-bindgen

jetli avatar Jun 22 '22 02:06 jetli

Hello again! I have check the last version of wasm-bindgen and its working again :)

wasm-bindgen = "0.2.83"

Just don't use the version =0.2.80 ;)

Nojipiz avatar Sep 28 '22 16:09 Nojipiz