Hi All, Any idea on this error occurred during gul...
# suitecommerce
c
Hi All, Any idea on this error occurred during gulp theme:local on suitecommerce base theme? I have formed the local URL correcty but for some reason I'm seeing below errors.
e
I'm not an expert with the theme but if you are using git take a look the
manifest.json
I do not know what has changed with the theme tools that the manifest look very different after running gulp theme: local, try with this command:
gulp theme:local --preserve-manifest
c
Thanks @eminero for the update on this. When should I run the preserve manifest command. I have just installed the base theme and fetch it to the local machine and ran gulp theme: local and can confirm there are no errors in the cmd prompt but not sure why It’s throwing errors in the browser console
e
Oh I see, yeah, try that command to run it locally, it seems the manifest is not recognizing your templates, double check if the manifest is pointing to the right path, also, if you just installed the base theme, I think that you might need to create a new one from it (if not, you will not be able to deploy it)
c
Thanks @eminero. Figured out the Issue. It's because templates are not added in the manifest.json file as you said. Do you have any idea what could be the issue? I'm wondering why templates are not added
e
Sadly not, I do not usually work with the theme but I encountered a similar issue the other day and the --preserve-manifest worked for me.
c
Yes that’s correct @eminero . The root cause of the issue is when we run gulp theme: local then all the tpl files are getting removed from manifest.JSON and when I do —preserve -manifest it’s working as expected but the weird thing is now when I run extension manager after theme deploy surprisingly it’s throwing new error
e
I see, yeah, my suggestion is try find the manifest.json on the file cabinet of the base theme and try to compare it with the one you just deployed, yours should live in
SuiteScript/Deploy_Extensions
then look for the folder matching your vendor. So I think the theme tools is formatting in the wrong way the manifest.json, I'm not sure if the --preserve-manifest works when deploying.
thankyou 1