We might get this error while working with Web resource of type JavaScript.
Either it could be because the method doesn’t exist or it could be because of the incorrect syntax.
For a small file, it is easy to figure out, but for a large file, we could use online validator tools like
Fix the syntax error, upload and publish the file and the error should get fixed.
Hope it helps..
Hi Nishant,
Nice article! In our case too the same error has popped up, however, without any changes to the JS code though. Suddenly we started seeing this error for onLoad method on one of the custom JS files, as below. Could you please share your thoughts on the reason for it? Thanks!
ReferenceError: Web resource method does not exist: Jt.WorkOrderForm.onLoad
LikeLike
Could be because of cachimg at times. try clearing the cache or incognito or a different browser
LikeLike
Thank you for your quick response, Nishant, appreciate it! We did that as well, apparently, the issue persists even on different browsers as well as in the incognito mode. We also tried deleting/adding the script and republishing the page too with no luck. Could you please suggest anything else we might be missing?
Thanks,
Laxmi
LikeLike