I decided to create a fork of an existing package and released it with a new, distinct name:
https://www.npmjs.com/package/feed-media-fork
After tagging a new version, setting up a release on GitHub, and running yarn add feed-media-fork
or the equivalent npm install feed-media-fork
, everything seemed to work fine.
However, upon trying to import the library, TypeScript started throwing a "module not found" error.
import { Extension, Feed, FeedOptions } from 'feed-media-fork';
The outcome was:
error TS2307: Cannot find module 'feed-media-fork' or its corresponding type declarations.
What am I overlooking here?