The `types` field in `package.json` points to a non-existent path: **Current (incorrect):** ```json "types": "dist/types/src/index.d.ts" ``` **Actual location:** ``` dist/types/index.d.ts ``` This causes TypeScript to fail resolving type declarations with error: ``` TS7016: Could not find a declaration file for module '@contentstack/utils' ``` **Fix needed:** ```json "types": "dist/types/index.d.ts" ``` Tested with version `1.6.1`.
Activity
shrutiawa commentedon Nov 12, 2025
Confirming this issue on version 1.6.1 with Next.js and TypeScript 5.1.6.
Error:
Verified:
dist/types/index.d.tsdist/types/src/index.d.ts(doesn't exist)Thanks for reporting this!
nadeem-cs commentedon Nov 12, 2025
Hey, thanks for raising this. This issue is fixed in v1.6.2 that is released recently.