TS support on Windows
Fresh install with npx create-vite-app
<script lang="ts">
export default {
data: () => ({ count: 0 })
}
</script>
[vite] error while transforming /App.vue with esbuild:
Error: Transform failed with 1 error
at failureErrorWithLog (C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\node_modules\esbuild\lib\main.js:35:17)
at Object.transform (C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\node_modules\esbuild\lib\main.js:250:38)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.exports.transformWithService (C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\dist\esbuildService.js:34:24)
at async compileSFCMain (C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\dist\serverPluginVue.js:110:24)
at async C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\dist\serverPluginVue.js:41:24
at async C:\Users\adrst\AppData\Roaming\npm-cache\_npx\5296\node_modules\vite\dist\serverPluginModuleRewrite.js:39:9 {
errors: [
{ text: 'Could not read from file: C:\\input.ts', location: null }
],
warnings: []
}
Getting the above error on a Windows machine, it does work on my mac.
I'm guessing related to path issues from #58 ?
It's related to esbuild, not vite.
I opened an issue on esbuild project : Error using transform() API #87
I Added A PR In esbuild Project