Does anyone know how to fix this error?
eventPrefix.common
Thank you.
Hey @Bene_Immanuel,
I am not 100% sure, but I think I had that one with my first Freshchat app I developed a few weeks ago.
Unfortunately I am not 100% sure how I resolved it, but I remember something like having added events under the “common” module in manifest.json.
So here’s my before and after (before on the right):
Sorry, can’t really remember if that was the solution.
What I am sure about is, that it was only an issue when testing. The app worked perfectly when installed, even without common module events.
Best
Tom
Trying that gave me the above error, so I added the dummy module since it’s an application for the Customer service suite.
{
"platform-version": "3.0",
"modules": {
"common": {
"location": {
"full_page_app": {
"url": "index.html",
"icon": "icon.svg"
}
},
"requests":{
// requestes
},
"functions": {
// SMIs
},
"chat_conversation": {
"events": {
"onMessageCreate": {
"handler": "onMessageCreateCallback"
}
}
}
},
"support_ticket": {} // the extra module
},
"engines": {
"node": "18.16.0",
"fdk": "9.1.3"
}
}
But looks like the event is not registered
Could you provide insights or guidance on resolving this?
Thank you.
Hey @Bene_Immanuel
I don’t see any event configured under the common module.
I don’t do anything in the AppInstall and AppUninstall handler - they are just there for preventing the error.
I can’t tell you why, but putting them there seems to prevent it.
Did you or could you try to add an appinstallhandler?
Best
Tom
Hi @ThomasH,
I have tried that too…
Actually, I need those setup events, since I faced an issue initially I have removed that to work and test the other flows.
So, I have raised this internally, and they are checking on it.
I’ll post here once I get an update from them.
Best,
Benny