library-pals / isbn

🔍 An npm module to find books by ISBN (Google Books, Open Library, Libro.fm)
7 stars 1 forks source link

Types not working proprely #29

Closed victormihalache closed 2 months ago

victormihalache commented 2 months ago

When importing the package I get the following error:

Could not find a declaration file for module '@library-pals/isbn'. '/<path-to-project>/node_modules/.pnpm/@library-pals+isbn@1.3.3/node_modules/@library-pals/isbn/src/index.js' implicitly has an 'any' type.

There are types at '/<path-to-project>/node_modules/@library-pals/isbn/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@library-pals/isbn' library may need to update its package.json or typings. ts(7016)

Could this be due to the package.json not having a main field?

My project has "type": "module" set in its package.json, and I cannot change that.