#Clean Build Tauri App.

7 messages · Page 1 of 1 (latest)

trim lodge
#

I am creating an app usingTauri and Svelte. I keep getting an issue when I use <style> tags. I think that if I clean build everytime it would work though. I am currently building in ubuntu using $ pnpm tauri dev. If anyone could tell me how to clean build without deleting all cache files manually that would be great.

trim lodge
#

The error wasn’t really resolved by anything I tried. Regular building worked but I can’t inspect element also this may be a bigger problem with my setup. I’m having some people I am working who are more experienced take a look at it. It might be something to do with the way the port is closing.

gentle owl
#

do you use devtools set to false ?

#

or tauri automaticly blocking devtools after build ?

trim lodge
#

I don't really know what that means. I get this error:
[plugin:vite:css] [postcss] /home/saxophonin/dashboard/src/lib/Draggable.svelte?svelte&type=style&lang.css:1:1: Unknown word

I don't get any errors when I use pnpm tauri build. I only get that error with pnpm tauri dev. Draggable.svelte is also only causing issues when I have a <style> tag in it and none of my other files have that.

woeful bough
#

i'd recommend reaching out to the svelte community tbh. They'll probably be able to help you better. You can force a clean rebuild with vite --force as your dev command (in package.json) though it may not even be the issue.