# Build folder (Sveltekit) is messing with ntl dev!

**URL:** <https://answers.netlify.com/t/build-folder-sveltekit-is-messing-with-ntl-dev/85550>\
**Category:** Support\
**Tags:** netlify-cli\
**Created:** [February 14, 2023, 7:26pm UTC](https://answers.netlify.com/t/build-folder-sveltekit-is-messing-with-ntl-dev/85550 "2023-02-14T19:26:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kreollc](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/kreollc/32/23695_2.png) [@kreollc](https://answers.netlify.com/u/kreollc)\
**Post date:** [February 14, 2023, 7:26pm UTC](https://answers.netlify.com/t/build-folder-sveltekit-is-messing-with-ntl-dev/85550/1 "2023-02-14T19:26:53Z")

</div>

Site: glittering-peony-7f5800

I run ntl dev all the time locally, no issues.

When I need to deploy, I have to first run _npm run build_ which creates a build folder. Builds fine. Deploys fine.

IF I then run _ntl dev_ with the BUILD folder still there, I get a corrupted looking app locally with NOTHING working, not css, nothing. I get some text from my +layout.svelte file displayed, thats all.

HOWEVER, if I DELETE the build folder and then run _ntl dev_ then my app appears/runs normally locally.

I am using: Windows 11, Sveltekit 1.0, Svelte 3.54.0, Vite 4.0.0, Node 18.4.0. (Same thing happened under Node 18.12.1).  
Im using adapter-netlify 1.0.0-next.88 and my netlify.toml is simply …  
[build]  
command=“vite build”  
publish = “build”

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [February 16, 2023, 3:31pm UTC](https://answers.netlify.com/t/build-folder-sveltekit-is-messing-with-ntl-dev/85550/2 "2023-02-16T15:31:00Z")

</div>

Hey @kreollc,

Can you see if this helps:

```auto
[dev]
  command = "npm run dev" # optional, try with just the framework first
  framework = "vite"

```
