node-redlock icon indicating copy to clipboard operation
node-redlock copied to clipboard

Typescript typings dont work with bundler moduleResolution

Open steelbrain opened this issue 4 months ago • 1 comments

Hello!

Thanks for making this package! It seems that typings are broken when tsconfig sets module resolution to bundler. Here's a repository with a reproduction: https://github.com/steelbrain/bug-reproduction-2024-10-redlock

Here's the error message

There are types at 'bug-reproduction-2024-10-redlock/node_modules/redlock/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'redlock' library may need to update its package.json or typings.

steelbrain avatar Oct 01 '24 06:10 steelbrain