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.
When importing the package I get the following error:
Could this be due to the
package.json
not having amain
field?My project has
"type": "module"
set in itspackage.json
, and I cannot change that.