So I'm trying to upgrade one of my extensions to V2: WalsGit/external-links-in-new-tab (decided to start with this one as it should be the easiest one to port)
I installed Flarum V2.0.0-beta.3 locally and it works fine. I created the "workbench" and added the repo. I copy/pasted inside of it the folder containing the code of my extension. Following https://docs.flarum.org/2.x/extend/update-2_0 I installed flarum-cli and running the upgrade command everything went ok, nothing really changed exception for some formating (prettier adjustments) and updating versions in composer.json etc.
I then installed the extension in flarum and activated it, and when I reloaded flarum, I got this error in the console :
Uncaught TypeError: Cannot read properties of undefined (reading 'forum/app')
at flarum/forum/app (app']":1:1)
at __webpack_require__ (bootstrap:19:1)
at ./src/forum/index.ts (forum.js?v=c8f2e21c:406:74)
at __webpack_require__ (bootstrap:19:1)
at make namespace object:7:1
at make namespace object:7:1
at make namespace object:7:1
clicking on that app']":1:1 (which is an odd "filename") the console opened it in the source tab which contained only this line module.exports = flarum.core.compat['forum/app']; and looking at the tree on the left, it looked like this :

I tried a lot of things (clear cache, composer install, update, yarn dev, build, install etc.) nothing changed, still the same error. Can someone please help me?