Hey there,
When I run gulp extension:local it works, as in, there are no errors in the terminal. However, the local website doesn't work because of an error in the browser console showing that it is unable to fetch the shopping_ext.js file.
Through adding logs in the javascript.js file in gulp/extension-mechanism/local-tasks here:
function generateEntryPoints(){
console.log("config", configs);
var application_manifest = configs.application.application_manifest
, entry_points
, js_dest = [];
console.log("app manifest", application_manifest);
if(application_manifest)
{
var entry_points = application_manifest.application;
_.each(entry_points, function(application)
{
js_dest.push(path.join(javascript_destination, application + '_ext.js'));
});
}
return [entry_points, js_dest];
}
I see that the application manifest is undefined, and it is undefined because application object from configs.application.application_manifest is empty. I went to trace this back in configuration.js (gulp/extension-mechanism), but thought I'd ask here before going too far.
For some reason, gulp is just not building any of the _ext.js files needed to run locally, and this is for the shopping, myaccount, and checkout application. None of them are built.
Now the basics to help:
SCA 22.2 Site
22.2 Developer Extension Tools
Node version 12.21.0
Gulp CLI: 2.3.0
Gulp Local version: 4.0.2
Thank you very much in advance! :)