Stable version of @minecraft/server module v2.0.0 is broken: neither of system.beforeEvents or world.beforeEvents work (havent checked for afterEvents tho).
Steps to reproduce:
1. Create empty script BP
2. Use @minecraft/server module v2.0.0
3. Import {world, system} from @minecraft/server
4. Try calling any existing beforeEvent of either of these
Expected result:
The code works perfectly no content log errors and the event callback does the thing
Actual result:
Content log logs an error: “cannot read property “subscribe” of undefined at N line”
And it works perfectly for v2.1.0-beta