ABTSoftware / SciChart.JS.Examples

MIT License
84 stars 37 forks source link

SciChart.js does not work with Create React App. Uncaught (in promise) TypeError: WasmModule2D is not a constructor #10

Closed puremood2002 closed 3 years ago

puremood2002 commented 4 years ago

Hi

I created a minimal react app with scichart.js, with a single component, it throws this error at run time Uncaught (in promise) TypeError: WasmModule2D is not a constructor Attached is the react app with this problem, please advise, thanks a lot.

hello-issue-demo.zip

klishevich commented 4 years ago

@puremood2002 thank you for the issue and zip file. The problem is that Create React App does not support WebAssembly (https://stackoverflow.com/questions/59319775/how-to-use-webassembly-wasm-with-create-react-app) as for now I created a template project React + SciChart (https://github.com/klishevich/react-scichart-demo) and we will look into how to use Create React App with SciChart

puremood2002 commented 4 years ago

Thanks

On Wed, Oct 28, 2020, 5:28 AM Michael Klishevich notifications@github.com wrote:

@puremood2002 https://github.com/puremood2002 thank you for the issue and zip file. The problem is that Create React App does not support WebAssembly ( https://stackoverflow.com/questions/59319775/how-to-use-webassembly-wasm-with-create-react-app) as for now I created a template project React + SciChart ( https://github.com/klishevich/react-scichart-demo) and we will look into how to use Create React App with SciChart

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ABTSoftware/SciChart.JS.Examples/issues/10#issuecomment-717809085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2HZBX3XUP6J7EAAD2ZEPLSM7P37ANCNFSM4S73J5NQ .

klishevich commented 3 years ago

We created Create React App Demo with SciChart.js - https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-create-react-app-scichart