react-component / steps

React Steps
https://steps.vercel.app/
MIT License
331 stars 112 forks source link

TypeScript types are wrong when this package is used in an ESM environment #330

Closed kaiyoma closed 1 year ago

kaiyoma commented 1 year ago

Since this package is CommonJS, we have to use RcSteps.default in our code when importing to an ESM environment, but the types don't recognize this as being possible.

kaiyoma commented 1 year ago

I ended up fixing this by migrating to Vitest (from Jest), which has much better support for using CJS libraries in ESM code.