I am building a module, and the HTML loads fine, but the JS isn't. Here is what I have:
- Vendor Name: NewShop
- Module Name: HelloWorld
File: app/code/NewShop/HelloWorld/view/frontend/requirejs-config.js
var config = {
map: {
'*': {
"helloworld": "NewShop_HelloWorld/js/newshop_helloworld",
}
}
};
File: app/code/NewShop/HelloWorld/view/frontend/web/js/newshop_helloworld.js
require(["helloworld"], function($) {
console.log('Hello World!')
});
I cleared up the cache and everything. I can't see the console message show up, even though the module shows fine.