The error "Cannot initialize Addon without a ResourceScope" has started appearing a few days ago in a SharePoint Online tenant when trying to open a file from Teams in a SharePoint file handler app.
In Chrome DevTools we can see that error in Console, originating from spofilehandlerproxy.js. The page remains blank.
In a different tenant, opening the files from Teams still works.
We noticed that on the tenant where the error appears there is a newer version of the spofilehandlerproxy.js file: [https://res-1.cdn.office.net/files/odsp-web-prod_2024-05-03.004/spofilehandlerproxy/spofilehandlerproxy.js](https://res-1.cdn.office.net/files/odsp-web-prod_2024-05-03.004/spofilehandlerproxy/spofilehandlerproxy.js "res-1.cdn.office.net") On the tenant where it still works, there is an older version: [https://res-1.cdn.office.net/files/odsp-web-prod_2024-04-26.006/spofilehandlerproxy/spofilehandlerproxy.js](https://res-1.cdn.office.net/files/odsp-web-prod_2024-04-26.006/spofilehandlerproxy/spofilehandlerproxy.js "res-1.cdn.office.net")
The older file doesn't throw that error. It is only thrown in the new file.
Any idea what may be causing it and how to fix it? Thank you.