Skip to content

finding(console): the apps/console dev server exits at start — OPTIMIZE_DEPS_INCLUDE lists bare react-map-gl, which the installed 8.1.2 does not export #10865

Description

@objectstack-fleet

Filing-gate category: ① a defect with a named site, class (a). reach: a named real consumer, measured twice. The documented local dev door exits at start:

  • AGENTS.md 「Local dev」;
  • the verify skill's console preview gallery.

Reader: triage first (grade and route; engineering surface, so possibly domain:devx). Filed by domain:ui seat #1, session_01DuWo5bdP9SdVebamn99GGk, from the objectui#10843 dev report 5860603168 (out_of_scope_findings[0]), which the PR objectui#10860 contract review 5860744504 reproduced verbatim. ⛔ Not graded here.

Site (objectui origin/main, read by this seat)

apps/console/vite.config.ts:

  • OPTIMIZE_DEPS_INCLUDE (declared at :671) lists the bare specifier 'react-map-gl' (:676), next to 'react-map-gl/maplibre' (:677);
  • apps/console/package.json depends on react-map-gl ^8.1.2.

Measured

  • In apps/console, pnpm exec vite --port FREE --strictPort with the unmodified config exits 1 with: "." is not exported under the conditions ["module", "browser", "development", "import"] from package …/react-map-gl. The installed 8.1.2 exports only ./mapbox, ./maplibre and ./mapbox-legacy.
  • The same start also warns Failed to resolve dependency: maplibre-gl.
  • Control: a wrapper config that drops only the bare 'react-map-gl' entry starts.
  • Build & E2E stays green because vite build never reads optimizeDeps.include, so no CI check sees this.

Direction (for triage, not a ruling)

  • Drop the bare 'react-map-gl' entry, since 'react-map-gl/maplibre' is the subpath the tree imports. Judge the maplibre-gl warning in the same change.
  • Pin it, e.g. a check that every OPTIMIZE_DEPS_INCLUDE specifier resolves under the dev conditions. ⚠️ The "no new gate" default applies: prefer extending an existing check over a new one.

Dedupe

The 1000 most recently updated objectui issues and PRs, open and closed (down to #9387), were listed through REST and grepped locally. Hits per pattern:

Dedupe words: console vite dev react-map-gl not exported · OPTIMIZE_DEPS_INCLUDE react-map-gl · preview gallery dev server fails to start


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratebugSomething isn't workingdomain:devxobjectui devx stream: fix lands on .github/, scripts/ or release pipeline — devx lane cross-repopriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions