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

Support for React #156

Closed
philipblaquiere opened this issue Nov 14, 2019 · 4 comments
Closed

Support for React #156

philipblaquiere opened this issue Nov 14, 2019 · 4 comments

Comments

@philipblaquiere
Copy link

Attempting to initialize rhino3dm.js in a React App results in WASM compile fail.

(On Chrome 78.0.3904.97, React 16.11.0, Rhino3dm 0.8.1)

CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0

Is there a way around this?

@mcneel-build
Copy link

Linked with RH3DM-63

@karimi
Copy link
Member

karimi commented Nov 14, 2019

@philipblaquiere
Copy link
Author

This is more a workaround rather than a solution.

The biggest pain is to require an async context to load the library.

@sbaer
Copy link
Member

sbaer commented Feb 17, 2020

wasm requires async loading. That is not specific to react and is a browser requirement

@sbaer sbaer closed this as completed Feb 17, 2020
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

4 participants