[GH-ISSUE #4436] [Issue]: Dev startup does not refresh stale workspace dependencies #2407

Closed
opened 2026-10-21 05:47:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4436

Originally assigned to: @SpicyMarinara on GitHub.

Summary

After a source checkout updates dependency manifests and pnpm-lock.yaml, npm run dev / pnpm dev can continue using the previously linked workspace dependencies. The server then crashes during ESM initialization when current source imports an API absent from the stale package version.

Expected behavior

The development entrypoint should detect that installed workspace dependencies do not match the current lockfile and synchronize them before starting the server.

Actual behavior

A checkout updated from Fastify 5.8.5 to 5.11.0 retained the old workspace link. packages/server/src/app.ts imported LogController, causing Node to abort with:

SyntaxError: The requested module 'fastify' does not provide an export named 'LogController'

Steps to reproduce

  1. Install a staging revision whose lockfile resolves Fastify 5.8.5.
  2. Update the checkout to the current staging revision without running pnpm install.
  3. Run npm run dev or pnpm dev.

Environment

  • Marinara Engine version: 2.4.0 staging
  • Install type: source
  • OS + version: macOS (version not recorded)
  • Browser or app shell: not reached; server startup fails

Logs, screenshots, or video

packages/server/src/app.ts:4
import Fastify, { LogController } from "fastify";
                  ^
SyntaxError: The requested module 'fastify' does not provide an export named 'LogController'

Additional context

Fresh installs and the normal auto-update launcher path are safe because they run pnpm install --frozen-lockfile. The immediate workaround is pnpm install --frozen-lockfile. The proposed fix should make the development entrypoint detect a stale installed lockfile and synchronize automatically; launcher install validation should also recognize stale lockfile state.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4436 Originally assigned to: @SpicyMarinara on GitHub. ## Summary After a source checkout updates dependency manifests and `pnpm-lock.yaml`, `npm run dev` / `pnpm dev` can continue using the previously linked workspace dependencies. The server then crashes during ESM initialization when current source imports an API absent from the stale package version. ## Expected behavior The development entrypoint should detect that installed workspace dependencies do not match the current lockfile and synchronize them before starting the server. ## Actual behavior A checkout updated from Fastify 5.8.5 to 5.11.0 retained the old workspace link. `packages/server/src/app.ts` imported `LogController`, causing Node to abort with: ```text SyntaxError: The requested module 'fastify' does not provide an export named 'LogController' ``` ## Steps to reproduce 1. Install a staging revision whose lockfile resolves Fastify 5.8.5. 2. Update the checkout to the current `staging` revision without running `pnpm install`. 3. Run `npm run dev` or `pnpm dev`. ## Environment - Marinara Engine version: 2.4.0 staging - Install type: source - OS + version: macOS (version not recorded) - Browser or app shell: not reached; server startup fails ## Logs, screenshots, or video ```text packages/server/src/app.ts:4 import Fastify, { LogController } from "fastify"; ^ SyntaxError: The requested module 'fastify' does not provide an export named 'LogController' ``` ## Additional context Fresh installs and the normal auto-update launcher path are safe because they run `pnpm install --frozen-lockfile`. The immediate workaround is `pnpm install --frozen-lockfile`. The proposed fix should make the development entrypoint detect a stale installed lockfile and synchronize automatically; launcher install validation should also recognize stale lockfile state. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:57 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2407
No description provided.