Deploy failed on vercel and netlify when using React-Ui-kit

Hi Comet Team,
I have been trying to deploy an Comet powered app to netlify and vercel but the deploy get failed and it gives an error
Error checking out submodules: fatal: No url found for submodule path 'src/CometChatKit' in .gitmodules

I get this error on netlify when i try to deploy it from the github and same thing happens when i deploy on vercel it give different error on vercel

Module not found: Error: Can't resolve '../../cometchat-pro-react-ui-kit/CometChatWorkspace/src' in '/vercel/path0/src/component/Messages

I have searched a lot but didn’t find any solution, please help me out how i can deploy in either server using github coz i am on clock and need to deploy the project ASAP.

Hi @callemizaz,

I apologize for the delayed response.

I would like to help you out in troubleshooting your issue. Can you check if there is a .git folder inside <YOUR-PROJECT>/src/cometchat-pro-react-ui-kit after you have copied it? if yes, you will need to delete this and stage all the files.

You will need to copy the folder manually ignoring the .git folder from cometchat-pro-react-ui-kit. If the .git folder gets copied, your main repository would treat this as a submodule and it wouldn’t push the code from the submodule to the actual repository.

You can also use the following command to clone inside your project. This would delete the .git folder, so cometchat-pro-react-ui-kit wouldn’t be treated as a sub-module.

git clone --depth=1 src/cometchat-pro-react-ui-kit && rm -rf src/cometchat-pro-react-ui-kit/.git

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.