Unable to Access Custom Doctypes After Pushing to Production

I have created an app with custom doctypes on my local setup and pushed the code to the production server. However, I am unable to open those doctypes on the production server. When I try to open them, I encounter the following issue.
Screenshot from 2024-09-18 10-54-35

The files have been successfully created on the server.
Screenshot from 2024-09-18 10-55-57

Upon inspecting the issue in the browser, I get the following error.


Could anyone guide me on how to resolve this issue?

If you haven’t set the role permission for that doctype then please set the permission for that.

sometimes bench --site site_name migrate and bench restart will solve your problem. check one