Skip to content

Angular CLI frontend cannot run with wails3 dev because --strictPort is passed #5765

Description

@neupaneanish

Description

I am trying to use Angular CLI as the frontend framework with Wails v3.

The frontend builds successfully, but wails3 dev cannot start the Angular development server because Wails passes the Vite-specific --strictPort argument.

To Reproduce

  1. Create a Wails v3 project.
  2. Replace the frontend with an Angular CLI application.
  3. Add the following script:
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "dev": "ng serve",
    "build:dev": "ng build --configuration development ",
    "build:prod": "ng build --configuration production",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  }

Expected behaviour

Wails should support Angular CLI as a frontend dev server without passing Vite-specific arguments.

When running wails3 dev, Angular should receive compatible arguments, for example:

ng serve --port 4200

This keeps it focused on the expected outcome rather than prescribing only one implementation.

Screenshots

Image

Attempted Fixes

No response

System Details

Wails v3.0.0-alpha2.115 › Wails Doctor

# System

┌─────────────────────────────────────────────────────────────────┐
| Name                | Ubuntu                                    |
| Version             | 24.04                                     |
| ID                  | ubuntu                                    |
| Branding            | 24.04.4 LTS (Noble Numbat)                |
| Platform            | linux                                     |
| Architecture        | amd64                                     |
| Desktop Environment | unset                                     |
| NVIDIA Driver       | N/A                                       |
| XDG_SESSION_TYPE    | unset                                     |
| CPU                 | Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz |
| Memory              | 8GB                                       |
└─────────────────────────────────────────────────────────────────┘

# Build Environment

┌──────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha2.115                                   |
| Go Version     | go1.26.4                                            |
| -buildmode     | exe                                                 |
| -compiler      | gc                                                  |
| CGO_CFLAGS     |                                                     |
| CGO_CPPFLAGS   |                                                     |
| CGO_CXXFLAGS   |                                                     |
| CGO_ENABLED    | 1                                                   |
| CGO_LDFLAGS    |                                                     |
| DefaultGODEBUG | cryptocustomrand=1,tlssecpmlkem=0,urlstrictcolons=0 |
| GOAMD64        | v1                                                  |
| GOARCH         | amd64                                               |
| GOOS           | linux                                               |
└──────────────────────────────────────────────────────────────────────┘

# Dependencies

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| *Android SDK        | Not found. Set ANDROID_HOME (install via Android Studio or the command-line tools). |
| gcc                 | 12.10ubuntu1                                                                        |
| gtk3 (legacy)       | 3.24.41-4ubuntu1.3                                                                  |
| gtk4                | 4.14.5+ds-0ubuntu0.10                                                               |
| npm                 | 11.16.0                                                                             |
| pkg-config          | 1.8.1-2build1                                                                       |
| webkit2gtk (legacy) | [Optional] not installed. Install with: sudo apt install libwebkit2gtk-4.1-dev      |
| webkitgtk-6.0       | 2.52.3-0ubuntu0.24.04.1                                                             |
| docker              | *Docker version 29.6.1, build 8900f1d (cross-compilation ready)                     |
|                                                                                                           |
└───────────────────────────────────────── * - Optional Dependency ─────────────────────────────────────────┘

# Signing

┌─────────────────────────────────────────────┐
| macOS Signing   | Not configured            |
| Windows Signing | Not configured            |
| Linux Signing   | GPG key: 002F5FEEDC4A1E29 |
└─────────────────────────────────────────────┘

# Checking for issues

 SUCCESS  No issues found

# Diagnosis

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions