With ThemeDevelopmentTools-23.2.0 is anybody havin...
# suitecommerce
m
With ThemeDevelopmentTools-23.2.0 is anybody having an issue with the manifest updating and removing all template files except 1 per application section? Like this.
Copy code
"templates": {
        "application": {
            "shopping": {
                "files": [
                    "Modules/TransactionHistory@sco-2018.1.0/Templates/transaction_history_list.tpl"
                ]
            },
            "myaccount": {
                "files": [
                    "Modules/TransactionHistory@sco-2018.1.0/Templates/transaction_history_list.tpl"
                ]
            },
            "checkout": {
                "files": [
                    "Modules/TransactionHistory@sco-2018.1.0/Templates/transaction_history_list.tpl"
                ]
            }
        }
    },
m
hi @Marvin im experiencing the same, have you found a workaround?
m
Just moved back to the the 2022 version of the toolset.
m
good call. Thanks!
m
I found a lot of trouble in upgrading to both 2023 versions of the toolset for Themes. The extension toolsets I haven't had issues with.
🙌 1
j
FWIW, I know this is an old thread, but doing the following change in the Theme DevTools 23.2 appears to fix it: In
gulp/extension-mechanism/update-manifest/compute-differences.js
line 170, you can replace:
Copy code
is_in_manifest = _.contains(manifest.templates.application[application].files, module_path);
with:
Copy code
if (_.contains(manifest.templates.application[application].files, module_path)) {
    is_in_manifest = true;
}
This also applies to Extensions DevTools 23.2, though it’s less noticeable since it’s only triggered for extensions that have templates and there’s at least one template that is not present in all applications. For example, if in the extension’s
manifest.json
a template is added to
templates.application.shopping.files
but not to
templates.application.checkout.files
, then it will remove all templates except one. If all extension templates are added to all applications, then the issue is not reproducible. Sharing with the broader channel in case it’s helpful to anyone else.
🙌 2
m
Thanks @joaquin!!