Skip to content

bug: Dev server not rebuilding when files change #4011

@Slevinski

Description

@Slevinski

Prerequisites

Stencil Version

2.20.2 and 3.0.0

Current Behavior

The stencil development server isn't rebuilding after files in src/ are changed.
stencil build --dev --watch --serve

This was working in version 2.20.0. I started the development server using the above command. I updated file src/component/fsw-sequence/fsw-sequence.tsx and the server would rebuild. After upgrading to v3.0.0 today, the development server stopped rebuilding. I downgraded to v2.20.2 and it still wouldn't rebuild. Downgrading to v2.20.0 fixed the issue and the development server rebuilds as expected.

Expected Behavior

The development server should rebuild the project when files are changed in src/.

System Info

Windows 11 machine with the linux subsystem as Ubuntu 20.04.  npm version 8.19.2.  node version 19.0.0.

Steps to Reproduce

  1. Clone stencil-component-starter
  2. npm install
  3. npm start
  4. Update src/components/my-component.tsx
  5. Notice that the development server doesn't update

Downgrade stencil/core to v2.20.2 and the problem still exists.

Downgrade stencil/core to v2.20.0 and the problem does not exist.

Code Reproduction URL

https://github.com/ionic-team/stencil-component-starter

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions