Closed arthurwolf closed 5 months ago
Update: Found a working example syntax in another issue:
https://github.com/newcat/baklavajs/issues/221
If you want me to do a PR to the repo adding the newer script setup syntax below the older one, tell me and I'll do it.
Also looking for info about whether this is the right way to do it, and a bit worried maybe I'll run into trouble further down the road and won't have this template/example to guide me anymore.
Cheers.
(absolutely amazing project)
All my views use the newer (and I think I remember recommended) VueJS format
<script setup lang='ts'>
thing: https://vuejs.org/api/sfc-script-setup.htmlThey look something like this:
They're neater and more compact, and I use them in all my views so I can't really switch back just for this project.
When I try to use the example provided with baklavajs,
it doesn't work...
How can I get it to work ? (if I get help/figure it out, I can make a PR to add this to the docs if you want)
Thanks a lot in advance.
PS:
I think I might have gotten a first step to work with
I don't know if it's actually working or not as nothing is displayed. I try to create a graph following the docs with:
and that in turn fails: