Skip to content

can't use strictPort in wxt dev config #1979

@mengxi-ream

Description

@mengxi-ream

Describe the bug

Image
  dev: {
    server: {
      port: 3333,
      strictPort: false,
    },
  },

I want to set the port start from 3333 and if that was occupied, use 3334, 3335.

I don't want the port starting from 3000 because this is too common. and sometimes I need open 2 dev browser to test the config sync feature of my extension.That's why I need this setting

But it always told me that 3333 port is used and not start with 3334

Reproduction

https://github.com/mengxi-ream/read-frog

Steps to reproduce

pnpm i

change the wxt config

and pnpm dev twice

System Info

System:
    OS: macOS 26.0.1
    CPU: (14) arm64 Apple M4 Pro
    Memory: 181.13 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.18.0 - /Users/leonz/Library/pnpm/node
    npm: 10.9.3 - /Users/leonz/Library/pnpm/npm
    pnpm: 10.16.1 - /opt/homebrew/bin/pnpm
    Deno: 2.3.1 - /Users/leonz/.deno/bin/deno
  Browsers:
    Brave Browser: 140.1.82.166
    Chrome: 142.0.7444.176
    Firefox: 144.0.2
    Safari: 26.0.1
  npmPackages:
    wxt: 0.20.10 => 0.20.10

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-triageSomeone (usually a maintainer) needs to look into this to see if it's a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions