BABYLON.Tools.DumpFramebuffer returns a promise in playground, but void in a real deploy?

https://playground.babylonjs.com/#QJ7ZP1#1

So line 114 works on a TS playground, but then on a local TS project it says that its returning a void not a promise. I tried to overwrite it and assume it was a promise, but that causes it to drop an error anyways.

Why does this work in a PG but not my local?

Are you sure you are on the same version?

Just checked Im a goober… Thought I was running 5.0 but Im on 4.2 XD…

I changed my version in the package to ^5.0.0-alpha15

And now I get a ton of these errors any ideas?:

Module not found: Error: Can't resolve '../Misc/tools' in 'F:\gitHUB\GameTemplate\node_modules\@babylonjs\core\Debug'
Did you mean 'tools.js'?
BREAKING CHANGE: The request '../Misc/tools' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/GameManager/RenderManager/RenderManager.ts 6:0-43
 @ ./src/GameManager/RenderManager/index.ts 13:13-39
 @ ./src/GameManager/index.ts 17:13-39
 @ ./src/index.ts 3:22-46

ERROR in ./node_modules/@babylonjs/core/Debug/debugLayer.js 3:0-48
Module not found: Error: Can't resolve '../Misc/observable' in 'F:\gitHUB\GameTemplate\node_modules\@babylonjs\core\Debug'
Did you mean 'observable.js'?
BREAKING CHANGE: The request '../Misc/observable' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/GameManager/RenderManager/RenderManager.ts 6:0-43
 @ ./src/GameManager/RenderManager/index.ts 13:13-39
 @ ./src/GameManager/index.ts 17:13-39
 @ ./src/index.ts 3:22-46

ERROR in ./node_modules/@babylonjs/core/Debug/debugLayer.js 4:0-33
Module not found: Error: Can't resolve '../scene' in 'F:\gitHUB\GameTemplate\node_modules\@babylonjs\core\Debug'
Did you mean 'scene.js'?
BREAKING CHANGE: The request '../scene' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/GameManager/RenderManager/RenderManager.ts 6:0-43
 @ ./src/GameManager/RenderManager/index.ts 13:13-39
 @ ./src/GameManager/index.ts 17:13-39
 @ ./src/index.ts 3:22-46

ERROR in ./node_modules/@babylonjs/core/Debug/debugLayer.js 5:0-43
Module not found: Error: Can't resolve '../Engines/engine' in 'F:\gitHUB\GameTemplate\node_modules\@babylonjs\core\Debug'
Did you mean 'engine.js'?
BREAKING CHANGE: The request '../Engines/engine' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/GameManager/RenderManager/RenderManager.ts 6:0-43
 @ ./src/GameManager/RenderManager/index.ts 13:13-39
 @ ./src/GameManager/index.ts 17:13-39
 @ ./src/index.ts 3:22-46

Try a npm install just in case.

already did, Ive never seen this error before.

I had to delete my modules folder, the package-lock and add this rule:

        test: /\.m?js/,
        resolve: {
            fullySpecified: false
        }
      }