So I have been trying to run a local playground so I can test the nine patch fixes. When I run
npm run serve -w @tools/babylon-server
everything is fine until this finishes:
Once that gets to a certain point the playground stops working and I get a bunch of compiler errors.
ERROR in ./src/sceneJs.js 3:0-44
Module not found: Error: Can't resolve './createScene' in 'F:\gitHUB\Babylon.js\packages\tools\babylonServer\src'
resolve './createScene' in 'F:\gitHUB\Babylon.js\packages\tools\babylonServer\src'
using description file: F:\gitHUB\Babylon.js\packages\tools\babylonServer\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: F:\gitHUB\Babylon.js\packages\tools\babylonServer\package.json (relative path: ./src/createScene)
no extension
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createScene doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createScene.js doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createScene.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createScene.tsx doesn't exist
as directory
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createScene doesn't exist
ERROR in ./src/sceneJs.js 4:0-46
Module not found: Error: Can't resolve './createEngine' in 'F:\gitHUB\Babylon.js\packages\tools\babylonServer\src'
resolve './createEngine' in 'F:\gitHUB\Babylon.js\packages\tools\babylonServer\src'
using description file: F:\gitHUB\Babylon.js\packages\tools\babylonServer\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: F:\gitHUB\Babylon.js\packages\tools\babylonServer\package.json (relative path: ./src/createEngine)
no extension
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createEngine doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createEngine.js doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createEngine.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createEngine.tsx doesn't exist
as directory
F:\gitHUB\Babylon.js\packages\tools\babylonServer\src\createEngine doesn't exist
webpack 5.70.0 compiled with 2 errors in 100024 ms
Sometimes restarting the server fixes it, but it soon returns to this state even without me doing anything.