livebud / livebud/bud

How to integrate svelte libraries into bud

Open
#351 1 comment 0 reactions 0 assignees View on GitHub
help wanted improvement
Dominant language
JavaScript
Stars
5.6k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

Hello, is there any docs about how can I use modules like sveltestrap/smelte/etc inside bud app?
All I do is
```

import Button from '@smui/button';

Click me
```
and getting errors
`view: open error error=budhttp: open returned unexpected 500. budfs: open "bud/node_modules/@smui/button". ✘ [ERROR] No loader is configured for ".svelte" files: node_modules/@smui/button/dist/Button.svelte`

What additional configuration should I apply to make this?

Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in a bud app using the shown @smui/button import and inspect the reported node_modules/@smui/button/dist/Button.svelte loader error. Check how bud configures asset and module loading for Svelte dependencies. Done means the example renders without the 500 error and the required configuration is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, frontend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.