Skip to content

[vue-ts template] Generated App.vue causes TS1005: ';' expected #5802

Description

@WeiTool

Wails version family

v2

Operating System

Windows

Description

When scaffolding a new project with wails init -t vue-ts, the generated App.vue lacks a semicolon at the end of the import statement, leading to TypeScript error TS1005: ';' expected. when running wails dev.
Adding a semicolon ; after the import statement resolves the compilation error.

BUG:

<script lang="ts" setup> import HelloWorld from './components/HelloWorld.vue'</script>

PASS:

<script lang="ts" setup> import HelloWorld from './components/HelloWorld.vue'; </script>

To Reproduce

Steps to reproduce the behavior:

  1. Open PowerShell
  2. Run command wails init -n lottery -t vue-ts to create new project
  3. Enter the project folder
  4. Run wails dev
  5. See TS1005 error: ';' expected in src/App.vue

Expected behaviour

A newly initialized project using the vue-ts template should compile and start successfully with wails dev, without requiring manual edits to add a semicolon in src/App.vue.

Screenshots

Image

Attempted Fixes

No response

System Details

- OS: Windows 11
- Wails CLI Version: Wails CLI v2.13.0
- Go Version: go version go1.26.4 windows/amd64

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions