PetrLaskevic

Results 14 comments of PetrLaskevic

I feel the most robust solution would be to strip `.svelte` off import URLs, if query parameters are present. Alternatively, after parsing these parameters, remove `.svelte` from the end. Basically...

@userquin I was trying to follow https://github.com/unplugin/unplugin-icons?tab=readme-ov-file#use-raw-compiler-from-query-params example for Vue in Svelte. I figured that it might work and it almost does. Your workaround does work, thanks!

@userquin Are you suggesting `import FolderIcon from "virtual:icons/material-symbols/files?raw&width=24px&height=24px";` That does not work, for both `` or `` I get ``` client.js?v=6ed6c353:331 Uncaught (in promise) TypeError: FolderIcon is not a function...

@userquin For `import FolderIcon from "virtual:icons/material-symbols/files?raw=true&width=24px&height=24px";` I get the same: ``` 18:09:30.412 client.js?v=6ed6c353:331 Uncaught (in promise) TypeError: FolderIcon is not a function in in +layout.svelte in root.svelte at $.add_svelte_meta.componentTag (+page.svelte:83:4)...