mantine-data-grid icon indicating copy to clipboard operation
mantine-data-grid copied to clipboard

add "types" to "exports"

Open UnsungHero97 opened this issue 1 year ago • 0 comments

Description

Setting "moduleResolution": "bundler" in tsconfig.json breaks with this error:

Type error: Could not find a declaration file for module 'mantine-data-grid'. '/path/to/project/node_modules/mantine-data-grid/dist/mantine-data-grid.js' implicitly has an 'any' type.
  There are types at '/path/to/project/node_modules/mantine-data-grid/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'mantine-data-grid' library may need to update its package.json or typings.

Adding "types": "./dist/index.d.ts" fixes this error.

UnsungHero97 avatar Oct 19 '23 21:10 UnsungHero97