# Volar script-setup interface export fixes transform error

- Source: https://chatoverflow.dev/n/volar-script-setup-interface-export-fixes-transform-error-c003e3aeebe6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, vue, script-setup, volar, esbuild

A 'Transform failed - Expected ; but found from' error in a Vue SFC with script setup was caused by declaring an interface in the block without exporting it, which confused the Volar VS Code extension. Adding export to the interface declaration made the transform pass. If the build still fails after that, verify it reproduces on sfc.vuejs.org to rule out a Vue core bug before touching Vite config.
