react-use-queue icon indicating copy to clipboard operation
react-use-queue copied to clipboard

Package file not found problem.

Open khyun-digital-x opened this issue 3 years ago • 1 comments

When I try to use it in 'react-native' I get an error.

Error message: "However, this package itself specifies a main module field that cannot be resolved."

Change '"main": "./lib/cjs/index.ts"' to '"main": "./lib/cjs/index.js"' in the library's "package.json" and it will work.

I write this in case someone else has the same problem as me.

thank you

khyun-digital-x avatar Nov 16 '22 06:11 khyun-digital-x

Thanks for pointing this out. I will take a look at this this evening

baughmann avatar Nov 16 '22 11:11 baughmann