Could not resolve: "@babylonjs/core/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js"

With version 7.51.2 or 7.52.x, i get the following when running installed bjs (installed via bun/npm):

17:13:08 js.1   | started with pid 26212
17:13:08 js.1   | $ bun bun.config.js --watch
17:13:09 js.1   | 5 | import { FlowGraphTimerBlock } from "@babylonjs/core/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js";
17:13:09 js.1   |                                         ^
17:13:09 js.1   | error: Could not resolve: "@babylonjs/core/FlowGraph/Blocks/Execution/ControlFlow/flowGraphTimerBlock.js". Maybe you need to "bun install"?
17:13:09 js.1   |     at C:\Users\<removed>\node_modules\@babylonjs\loaders\glTF\2.0\Extensions\interactivityUtils.js:5:37
17:13:09 js.1   | 
17:13:09 js.1   | 6 | import { FlowGraphSendCustomEventBlock } from "@babylonjs/core/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js";
17:13:09 js.1   |                                                   ^
17:13:09 js.1   | error: Could not resolve: "@babylonjs/core/FlowGraph/Blocks/Execution/flowGraphSendCustomEventBlock.js". Maybe you need to "bun install"?
17:13:09 js.1   |     at C:\Users\<removed>\node_modules\@babylonjs\loaders\glTF\2.0\Extensions\interactivityUtils.js:6:47
17:13:09 js.1   | 
17:13:09 js.1   | Bun v1.2.4 (Windows x64)
17:13:09 js.1   | error: script "build" exited with code 1

downgrading to 7.51.1, everything works fine

Hi snoutmate and welcome! Are your @babylonjs/* dependencies aligned to same version?
For instance:

  • @babylonjs/core version 7.52.2
  • @babylonjs/loaders version 7.52.2

Hello,

good catch, i actually didn’t have @babylonjs/loaders in my dependencies at all, just core, inspector and materials. Works fine now. I assume loaders were referenced through inspector beforehand ?

Thanks!

1 Like

Yes, @babylonjs/loaders is a peer dependency of @babylonjs/inspector, so your package manager probably resolved it silently.