storybookjs/storybook

[Bug]: --exact-port Not Working

Closed

#30187 opened on Jan 4, 2025

View on GitHub
 (2 comments) (3 reactions) (0 assignees)TypeScript (89,909 stars) (10,058 forks)batch import
bugclihelp wanted

Description

Describe the bug

storybook dev --exact-port 6006 failed to run, while storybook dev --port 6006 works.

Reproduction link

https://github.com/ianzone/storybook-init

Reproduction steps

  1. clone and install deps
  2. run storybook dev --exact-port 6006

System

System:
    OS: Linux 5.15 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H
    Shell: 5.9 - /home/linuxbrew/.linuxbrew/bin/zsh
  Binaries:
    Node: 22.14.0 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/node
    Yarn: 1.22.22 - /home/linuxbrew/.linuxbrew/bin/yarn
    npm: 10.9.2 - /home/linuxbrew/.linuxbrew/opt/node@22/bin/npm <----- active
    pnpm: 10.4.1 - /home/linuxbrew/.linuxbrew/bin/pnpm
  npmPackages:
    @storybook/addon-a11y: ^8.5.8 => 8.5.8
    @storybook/addon-coverage: ^1.0.5 => 1.0.5
    @storybook/addon-essentials: ^8.5.8 => 8.5.8
    @storybook/addon-interactions: ^8.5.8 => 8.5.8
    @storybook/addon-links: ^8.5.8 => 8.5.8
    @storybook/blocks: ^8.5.8 => 8.5.8
    @storybook/react: ^8.5.8 => 8.5.8
    @storybook/react-vite: ^8.5.8 => 8.5.8
    storybook: ^8.5.8 => 8.5.8

Additional context

No response

Contributor guide