I wrote a module in typescript. I'm trying to import that module into another module also written in typescript. I naively thought this would be simple and intuitive.
$ npx tsc --build tsconfig.json
error TS2688: Cannot find type definition file for 'cc-typescript'.
The file is in the program because:
Entry point for implicit type library 'cc-typescript'
Found 1 error.
This is the import in my index.ts that is failing:
import { Model } from '@ccorg/cc-typescript';
The @ccorg/cc-typescript module itself exports its types in this way, and I've verified that the specified index.d.ts file does exist:
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Any assistance is greatly appreciated. It feels awful to be stuck on importing a module; I just want to move past this and work on my project.
