Nestjs Svelte - import apexcharts in Svelte files #2727
eta32carinae
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to Nodejs. I have created a Nestjs project, and I'm using svelte templates. I'm trying to create a chart and it works like this:
and the script is something like this:
but when I tried doing it all in the svelte file like this:
the
onMount
is not triggering at all and it keeps showing the loading div.My question is how can I import apexcharts using
import ApexCharts from 'apexcharts';
in the svelte file and write all the js scripts in it?I also tried using svelte-apexcharts but I got another problem.
Beta Was this translation helpful? Give feedback.
All reactions