I did not create a reproduction at the moment, can do so if it is necessary, but it's not very easy to create a minimal repro anyway.
What's your environment?
The error comes up in Storybook that is using vite as the bundler. Note that I could not reproduce the issue in this repository, which also uses storybook with vite, but that is probably because in this repo storybook loads the source files, not the build output.
There seem to be differences in the build output from this commit, which is probably the root cause of the issue. I did not see any changes for the particular dependency nor the place where it is used.
Are you submitting a bug report or a feature request or a question?
A bug report.
What is the current behavior?
After updating from 0.7.0 to 0.7.1, a component using this library fails to render with an error:
The error happens on this line here: https://github.com/vtaits/react-select-async-paginate/blob/master/packages/react-select-async-paginate/src/wrapMenuList.tsx#L100
What is the expected behavior?
No errors when rendering.
Sandbox Link
I did not create a reproduction at the moment, can do so if it is necessary, but it's not very easy to create a minimal repro anyway.
What's your environment?
The error comes up in Storybook that is using vite as the bundler. Note that I could not reproduce the issue in this repository, which also uses storybook with vite, but that is probably because in this repo storybook loads the source files, not the build output.
Other information
There seem to be differences in the build output from this commit, which is probably the root cause of the issue. I did not see any changes for the particular dependency nor the place where it is used.