Skip to content

Heft start causes re-build multiple times per second #10458

@vvolodin

Description

@vvolodin

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

macOS

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • SPFx version 1.22
  • Node.js version 22.16

Describe the bug / error

After running npm start heft triggers re-build as "requested by typescript" all the time (even without workbench open). It happens very often, more than once per second, here's output that spans around 3 seconds:

-------------------- Finished (0.047s) --------------------
Waiting for changes. Press CTRL + C to exit...

New run requested by typescript

Starting incremental build...
 ---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
[build:webpack] Webpack has not detected changes. Listing previous diagnostics.
 ---- build finished (0.028s) ----
-------------------- Finished (0.03s) --------------------
Waiting for changes. Press CTRL + C to exit...

New run requested by typescript

Starting incremental build...
 ---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
[build:webpack] Webpack has not detected changes. Listing previous diagnostics.
 ---- build finished (0.027s) ----
-------------------- Finished (0.029s) --------------------
Waiting for changes. Press CTRL + C to exit...

New run requested by typescript

Starting incremental build...
 ---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
Immediate rerun requested. Executing.
[build:webpack] Webpack has not detected changes. Listing previous diagnostics.
 ---- build finished (0.032s) ----
-------------------- Finished (0.034s) --------------------
Waiting for changes. Press CTRL + C to exit...

New run requested by typescript

Starting incremental build...
 ---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
[build:webpack] Webpack has not detected changes. Listing previous diagnostics.
 ---- build finished (0.011s) ----
-------------------- Finished (0.012s) --------------------
Waiting for changes. Press CTRL + C to exit...

New run requested by typescript

Starting incremental build...
 ---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
[build:webpack] Webpack has not detected changes. Listing previous diagnostics.
 ---- build finished (0.013s) ----
-------------------- Finished (0.014s) --------------------
Waiting for changes. Press CTRL + C to exit...

Steps to reproduce

  1. Create new 1.22-beta4 project
  2. Run npm run start
  3. Check the console output

Expected behavior

  1. Run build only when needed.

Metadata

Metadata

Assignees

Labels

sharepoint-developer-supportsharepoint-developer-supporttype:bug-confirmedConfirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions