livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.58k stars 180 forks source link

Add support for skeleton UI #409

Closed henrriusdev closed 1 year ago

henrriusdev commented 1 year ago

Many Svelte developers (including me) use UI libraries that already have several components to save us time, however, Bud currently does not support one of these libraries, specifically skeleton.dev, for the tailwind part, there is no problem, it could be included by cdn, but when using this script in any of the views, it generates an error

<script lang="ts">
  import "@skeletonlabs/skeleton/themes/theme-skeleton.css"
  import "@skeletonlabs/skeleton/styles/skeleton.css"
</script>
<!-- Tailwind script cdn -->

Error received: view: render error error="genfs: open \"bud/view/_ssr.js". expected exactly 1 output file but got 2"

I guess a modification would have to be made to allow additional stylesheets to be added. To contribute to this project, I will try other similar libraries to see if there are no problems when using them.

Bishwas-py commented 1 year ago

It might be the issue of Svelte version, livebud supporting 3.47.0 and skeletonlabs with a Svelte for of 4.2.0.