alexkhismatulin / react-use-count-down

Dead simple yet powerful countdown hook for React.
https://stackblitz.com/edit/react-use-count-down
MIT License
78 stars 20 forks source link

package.json fields references wrong files #47

Open formatlos opened 1 year ago

formatlos commented 1 year ago

The published version has flattened file structure, which means the references to source, main, module, unpkg in package.json are wrong, leading to problems with bundlers using those fields (e.g. vite).

v1.1.3 v1 1 3

v1.1.1 v1 1 1

frzkn commented 1 year ago

Yes, this broke the bundler when the dependency got auto-resolved to v1.1.3 Downgrading fixes it.

HuyAms commented 1 year ago

I got the same issue when running test with vitest.

Error: Failed to resolve entry for package "react-countdown-hook". The package may have incorrect main/module/exports specified in its package.json.

LesTontonsDev commented 11 months ago

@alexkhismatulin Can you please make a new correct release?