wailsapp / wailsapp/wails

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

Open Beginner friendly
#5,802 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug v2
Dominant language
Go
Stars
36.3k
Forks
1.9k
Avg merge
2d 11h
Merged PRs (30d)
33

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the vue-ts template output at src/App.vue and reproduce the issue using wails init -n lottery -t vue-ts followed by wails dev. Check the generated import statement and verify that a newly initialized project compiles without the TS1005 error on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.