Hello guys,
Can you provide an example how to implement scichart on SSR Frameworks like Nuxt or Next.js ? I am trying to understand how i can compile a simple chart using Nuxt, getting the .data/.wasm file but i have problem after building process.
Can you help?
Many thanks
Pedro Cruz
- Ricardo Diz asked 4 years ago
-
Hey Pedro, you probably know more about Next.js than we do, would you be willing to share what you’ve got so far? maybe our team can help you take it to completion. Best regards, Andrew
-
Hey Andrew Burnett, I have made a repo to show you guys how to setup vue-scichart in Nuxt https://github.com/pedropcruz/example-nuxt-scichart PS: Not in Next.js Kind Regards, Pedro Cruz
- You must login to post comments
Hi Pedro,
SciChart.js support for Server Side Frameworks like Next.js and Nuxt.js is pretty straightforward. The most important is to copy scichart2d.wasm and scichart2d.data files into the appropriate place.
scichart2d.wasm should be placed in the same folder as bundle.js/main.js file and scichart2d.data should go to the server root folder.
Another way is to place both files into the server root folder and to set HTML base tag
<base href="/">
We have created an example for Next.js, please check it out here – SciChart.js example with Next.js
I believe that for Nuxt.js it should be similar.
Another
Best regards,
Michael
- Michael Klishevich answered 4 years ago
- You must login to post comments
Please login first to submit.