[Bug] spikersoft serve target has key "options:" (stray colon) — serviceWorker/external settings silently ignored #1176

Closed
opened 2026-10-02 04:44:20 +00:00 by spikerj · 1 comment
Owner

Bug

projects/spikersoft/project.json ~L210, under the serve target:

"options:": {

The key has a stray trailing colon, so Nx treats it as an unknown property and ignores the whole block — the serviceWorker and external dev-server settings in it have never applied. Found during the 2026-10-02 dependency changelog review.

Fix

  • Rename to "options", then verify nx serve spikersoft still behaves as intended (does the dev server now register the service worker? is that wanted locally? are the external deps right?). Adjust the values, don't just un-ignore them blindly.
  • Consider a lint/CI check for project.json keys ending in :.

Size: XS. Related: the "move serve off @angular-devkit/build-angular" ticket touches the same target.

Links: Related: #1171.


Filed from the 2026-10-02 spikersoft-angular pnpm outdated changelog review.

## Bug `projects/spikersoft/project.json` ~L210, under the `serve` target: ```json "options:": { ``` The key has a stray trailing colon, so Nx treats it as an unknown property and **ignores the whole block** — the `serviceWorker` and `external` dev-server settings in it have never applied. Found during the 2026-10-02 dependency changelog review. ## Fix - Rename to `"options"`, then verify `nx serve spikersoft` still behaves as intended (does the dev server now register the service worker? is that wanted locally? are the `external` deps right?). Adjust the values, don't just un-ignore them blindly. - Consider a lint/CI check for project.json keys ending in `:`. Size: **XS**. Related: the "move serve off @angular-devkit/build-angular" ticket touches the same target. **Links:** Related: #1171. --- _Filed from the 2026-10-02 spikersoft-angular `pnpm outdated` changelog review._
spikerj added the bug label 2026-10-02 04:44:20 +00:00
Author
Owner

Already fixed in spikersoft-angular #1416 (merged 2026-10-02, commit e14123a6a).

Checked against origin/master: no project.json has an "options:" key anymore. The block was removed rather than renamed, because neither setting in it was a valid dev-server option:

  • serviceWorker is a build option, and the build target already sets it.
  • external: [] did nothing.

The same PR moved serve to @angular/build:dev-server (#1171) and kept ssl and proxyConfig. Local nx serve was checked over https.

I didn't add the suggested lint check for keys ending in :; file a separate issue if it's still wanted. Closing; reopen if nx serve misbehaves.

Already fixed in spikersoft-angular #1416 (merged 2026-10-02, commit e14123a6a). Checked against `origin/master`: no `project.json` has an `"options:"` key anymore. The block was removed rather than renamed, because neither setting in it was a valid dev-server option: - `serviceWorker` is a build option, and the build target already sets it. - `external: []` did nothing. The same PR moved `serve` to `@angular/build:dev-server` (#1171) and kept ssl and proxyConfig. Local `nx serve` was checked over https. I didn't add the suggested lint check for keys ending in `:`; file a separate issue if it's still wanted. Closing; reopen if `nx serve` misbehaves.
Sign in to join this conversation.