GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `tslib` is in devDependencies → `Cannot find module 'tslib'` when loaded as a csdx plugin · Issue #194 · contentstack/launch-cli

tslib is in devDependencies → Cannot find module 'tslib' when loaded as a csdx plugin #194

New issue
Copy link
New issue
Copy link
Open
Open
tslib is in devDependencies → Cannot find module 'tslib' when loaded as a csdx plugin#194
Copy link

Description

@JvE-iO
JvE-iO
opened on Jul 2, 2026
Issue body actions

tslib is in devDependencies → Cannot find module 'tslib' when loaded as a csdx plugin

Repo: contentstack/launch-cli — package @contentstack/cli-launch

The compiled dist require("tslib") at runtime, but tslib is in devDependencies, not
dependencies. When @contentstack/cli-launch is installed as a plugin of @contentstack/cli,
its devDependencies aren't installed, so tslib is missing and every launch command fails to
load.

Repro:

pnpm add -g @contentstack/cli
csdx launch --help

→ wall of [MODULE_NOT_FOUND] ... Cannot find module 'tslib' for launch, launch:deployments,
launch:environments, launch:functions, launch:logs, launch:open, launch:rollback.

Confirmed from the registry:

$ curl -s https://registry.npmjs.org/@contentstack/cli-launch/1.11.1 | jq '{dep:.dependencies.tslib, dev:.devDependencies.tslib}'
{ "dep": null, "dev": "^2.8.1" }

npm users mostly dodge it because flat node_modules hoists tslib from some other package; a
strict pnpm install surfaces it. Not OS-specific.

Fix: move tslib from devDependencies to dependencies in package.json (or set
importHelpers: false in tsconfig so no runtime tslib is emitted).

Env: cli-launch 1.11.1 (via @contentstack/cli 1.64.0), @oclif/core 4.11.11, pnpm 11.9.0, node 23.9.0.

Activity

  1. Harshi-Shah-CS
    added a commit that references this issue on Nov 17, 2026

    fix(deps): declare tslib as a runtime dependency (#287)

    f6f7503
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.