Importing @ensdomains/thorin returns the following error:
Could not find a declaration file for module '@ensdomains/thorin'. 'PROJECT_DIR/node_modules/@ensdomains/thorin/dist/index.es.js' implicitly has an 'any' type.
There are types at 'PROJECT_DIR/node_modules/@ensdomains/thorin/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@ensdomains/thorin' library may need to update its package.json or typings.
It seems it's unable to resolve the types defined in the package.json file. A possibile solution is the proposed one, where the types are set explicitly in the exports.".".import.types field:
Importing
@ensdomains/thorin
returns the following error:It seems it's unable to resolve the types defined in the
package.json
file. A possibile solution is the proposed one, where thetypes
are set explicitly in theexports.".".import.types
field:For reference the
tsconfig.json
file used is the default one from Next.js: