I have some common functions, which I have put in /app/public/js/file.js
I am using frappe.require() and it’s not showing any error, meaning it is taking the path correctly and when I am doing console.log() inside the file to check if its loaded, it is correct.
But my functions inside the file, when I am trying to call them, I am getting function not defined error in console.