[vue-ts template] Generated App.vue causes TS1005: ';' expected
Nobody has claimed this yet.
- 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:
- Open PowerShell
- Run command
wails init -n lottery -t vue-tsto create new project - Enter the project folder
- Run
wails dev - 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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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