Here, I suggest two solutions (the first is better):
1. add this following codes in bootstrap --> startup
if (Zotero.platformMajorVersion >= 102) {
var aomStartup = Components.classes[
"@
mozilla.org/addons/addon-manager-startup;1"
].getService(Components.interfaces.amIAddonManagerStartup);
var manifestURI = Services.io.newURI(rootURI + "manifest.json");
chromeHandle = aomStartup.registerChrome(manifestURI, [
["content", "
yourPluginName", rootURI + "chrome/content/"],
]);
}
2. add rootURI to Zotero Object.