Hi everyone!
I am working in a local plugin and I need to add javascript code; When following the instructions to add the AMD, the console gives me a 404 error as you can see in the following image:
The structure of my local plugin is as follows:
and the content of my "studentreport.js" file is as follows:
export const init = () => {
console.log("i need help");
}
I am calling the amd file from view.php with the following code:
$PAGE->requires->js_call_amd('local_quizreport/studentreport', 'init');
I am working with Moodle 3.11.3+, i need a hand please :D