vega0 Have you written any substantial source code yet? If not, I would recommend starting over.
Use Flarum CLI to make a new extension skeleton. Go to the JS file, and run npm install and npm run dev. Enable the extension. Then, make sure that when you go to the admin and forum parts, you see messages in the console log.
Once this is working, move over any code you've written.
This is documented at https://docs.flarum.org/extend/frontend.html#transpilation-and-file-structure if you'd like some more context.