I have a question about including a file in javascript. I have a very simple example:
--> index.html --> models --> course.js --> s
From a quick glance on MDN I think you may need to include the .js at the end of your file name so the import would read import './course.js' instead of import './course'
.js
import './course.js'
import './course'
Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import