Skip to content

ecs and network client types import editor-lib, an optional peer dependency #530

Open

Description

@Exeloo

Which package is this bug report for?

ecs

Issue description

The published client type declarations of @nanoforge-dev/ecs and @nanoforge-dev/network 3.0.0 import @nanoforge-dev/editor-lib, which both packages list only as an optional peer dependency. A project without the editor library (every nf new project made without --editor) fails tsc --noEmit with TS2307 from node_modules.

Steps: nf new --name solo --language ts --strict --no-server, install, then tsc --noEmit -p ..

Expected: the public types of ecs and network type-check without editor-lib installed (keep editor types out of the public declarations, or make editor-lib a regular dependency).

Found during the cli bug sweep of 2026-11-23, from NanoForge-dev/CLI#308 (part 3).

Code sample

node_modules/@nanoforge-dev/ecs/dist/client/index.d.ts(3,73): error TS2307: Cannot find module '@nanoforge-dev/editor-lib' or its corresponding type declarations.
node_modules/@nanoforge-dev/network/dist/client/index.d.ts(2,55): error TS2307: Cannot find module '@nanoforge-dev/editor-lib' or its corresponding type declarations.

Versions

  • @nanoforge-dev/ecs 3.0.0, @nanoforge-dev/network 3.0.0 (engine main d62a790)
  • TypeScript 6.0.3
  • Node.js 26
  • Linux

Issue priority

Medium (should be fixed soon)

I have tested this issue on a development release

No response

Activity

  1. added
    bug
    on Nov 23, 2026
  2. added
    modules:ecs
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmodules:ecs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions