shipshapecode / shipshapecode/angular-shepherd

Angular-Shepherd 19 CommonJS build fails with TS2309

Open
#2,610 15 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
238
Forks
50
Avg merge
1m
Merged PRs (30d)
9

Description

Attempting to upgrade to Angular-Shepherd 19 in a project using moduleResolution: node generates the following error:

Error: node_modules/shepherd.js/dist/cjs/shepherd.d.cts:581:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.

581 export = Shepherd;
    ~~~~~~~~~~~~~~~~~~

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with Angular-Shepherd 19 under moduleResolution: node and inspect node_modules/shepherd.js/dist/cjs/shepherd.d.cts at the reported export assignment. Trace how the CommonJS declaration is produced and verify that the package no longer raises TS2309 during the relevant TypeScript build.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.