Skip to content

TS support on Windows #62

@mccxiv

Description

@mccxiv

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions