-
Notifications
You must be signed in to change notification settings - Fork 57
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
CometChat UI breaks react app when compiling with AWS and Vite. #92
Comments
Hi @fishChipsDevTeam, |
Yes this is only happening when importing the React UI Kit Here is how our packet.json looks
|
Hi @Fitux, I wanted to make sure if the issue has been resolved from our end. If not, it would be great if we could connect to discuss this further. You can write to us at help@cometchat.com or reach out to us through Intercom. We'll be happy to help you. Regards, |
The problem.
Installed the cometChat react UI kit on a react app run with vite. Everything works fine locally.
When deploying on our prodEnvironment on Aws amplify (Builds and deploys without errors) and running the App, it breaks when compiling and throws this error:
“Uncaught TypeError: Cannot convert undefined or null to object at Function.keys”
here is a sample of the code that fails when attempting to start the app:
Environment
We modified the extensions and imports on some of the files from .js to .jsx for vite to be able to compile and locally it works just fine but it might have something to do with the issue when running on production Env(aws amplify).
"vite": "^2.6.2",
"aws-amplify": "^4.2.9",
The text was updated successfully, but these errors were encountered: