FDK Validation Fix Code Thread

Good day, Freshdesk Developers Team.

I like to raise concern regarding acceptable code bases in your platform.

We have this lint error coming from “fdk validation --fix” that we see this error on the parsing error:

Screenshot 2024-10-04 at 12.30.13 PM

And what I noticed on the codebase, we used this kind of scenario that can append HTML tags and this was developed a long time ago.

Asking for this one if do we have alternatives to fix this? Reason is because it is essential to append this tag because of usability with our UI.

FDK used:
v9.1.3

Custom App: Freshdesk Custom App

Let us know if you need to align with me since we will fix lint errors for our tech initiative to avoid blockers on our future releases.

Thank you.

Regards,
Bryan

I tried this only like this:

Screenshot 2024-10-04 at 12.43.24 PM

Still gives this error. Not sure why this treats this as lint error as this is normal on React.JS per link here: Common components (e.g. <div>) – React

Screenshot 2024-10-04 at 12.44.37 PM

I did also tried to remove the line of code on line 352 that screenshotted:

Screenshot 2024-10-04 at 12.54.58 PM

It gives this error that is confusing to me because it is treated like React JS HTML tags as parsing error since this to render the class name of the UI Screen Function named < AccessRights >.

Not sure if this can be scope but I see this old Freshworks Git from Freshdesk Folder Section that uses html React Tags:

Hi @BrianDev,

Are you using the react component tag in the app.js file or the modal js files?

Could you share a simplified version of the code that you’re trying with us to test it?

Hi, Sir @Raviraj!

I sent you an email regarding this one. Let me know if you have concerns.

Thank you

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