-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Errors with Vite #68
Comments
I am facing the same error, could you take a look? @fseehawer |
Hi @edbella and @GiorgioBertolotti, you are always welcome to create a PR if you encounter any issues and want to fix it yourself. I haven't run into the issue yet. I will try to reproduce it. |
I've run into this issue too -- seems like a common interoperability issue with CJS modules (see here for more, I've had this same problem with other packages which this solution works for as well): Here's my current workaround (to work with TS): export function interopDefault(value: any): {
return value.default;
}
const CircularSlider =
import.meta.env['MODE'] === 'development' ? CircularSliderDev : interopDefault(CircularSliderDev); |
On my side the problem seems now to be fixed, even without using @nicvickeryw's workaround 🙏🏼 |
I'm facing almost the same issue getting |
@fabianbru Could you give pointers on the below?
I've tried to use this package a couple of times with Vite but it doesn't work. I believe it has to do with the way the package is compiled that makes it result in a post-build error
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
The text was updated successfully, but these errors were encountered: