It seems like the types (presumably generated by rollup) in @table-library/react-table-library/table/Table/index.d.ts have broken references to modules within this monorepo:
The import("../../types") expressions should probably be emitted as import("@table-library/react-table-library/types") instead.
This causes issues with downstream TS compilation:
../../node_modules/@table-library/react-table-library/table/Table/index.d.ts:12:19 - error TS7016: Could not find a declaration file for module '../../types'. '/Users/adi/Developer/repos/personal/raga/node_modules/@table-library/react-table-library/types.js' implicitly has an 'any' type.
12 tree?: import("../../types").Tree<TableNode> | undefined;
~~~~~~~~~~~~~
Found 4 errors in the same file, starting at: ../../node_modules/@table-library/react-table-library/table/Table/index.d.ts:9
Environment:
Yarn v4 with nodeLinker: node-modules
Node.js v20.11.0
TypeScript v5.3.3
I can work around these by setting skipLibCheck: true, but this is a band-aid fix which may cause other legitimate compiler errors to be swallowed, and I do not wish to use that as a long-term solution.
It seems like the types (presumably generated by rollup) in
@table-library/react-table-library/table/Table/index.d.ts
have broken references to modules within this monorepo:unpkg link
The
import("../../types")
expressions should probably be emitted asimport("@table-library/react-table-library/types")
instead.This causes issues with downstream TS compilation:
Environment:
nodeLinker: node-modules
I can work around these by setting
skipLibCheck: true
, but this is a band-aid fix which may cause other legitimate compiler errors to be swallowed, and I do not wish to use that as a long-term solution.