But when we are going to create a build then it shows lots of errors regarding the SDK.
I attached the Image of the logs to understands you. Please check and give us a solutions so we can start further. development.
Thank you for reaching out. Could you provide some additional info please. Like the version of SDK you are using. Looks like you are using vite, I’ll need to check if additional configs are required for Vite.
In the meatime:
Could you please check if the dist folder inside node_modules/@amityco/ts-sdk has @types defined?
Thanks for immediate response. Please refer below versions that i am using in my application.
“vite”: “4.0.4”
“amityco/ts-sdk”: “^6.2.0”
“typescript”: “4.9.4”
I tried the Vite plugin but didn’t work for me. it gives me the same error as earlier.
I checked the dist folder, @types is defined there. ( i have attached the screenshot below )
I’ve tried to use the SDK with an official vite template for React Typescript.
Types work as expected. The build does succeed as well without any errors. I’m unable to reproduce your issue.
I am sorry but I’ve got a few other things to take care of. As it’s not an SDK issue I’m afraid I can’t be of much help. As I’m not aware of the configs you are using.
You could try updating vite see if that solves the issue. The same one that I used in the response above.
If there is an SDK specific issue please reach out.