I am in the process of upgrading my app from @babylonjs/core from 6.49.0 to 8.15.1 and have run into an issue with Webpack:
on a page https://localhost:8000/gallery/7f7bb756-50da-4bae-a0fe-e3b8b5d3e6b2/view
Babylon.JS is making a request for this URL which is returning a 404:
https://localhost:8000/gallery/7f7bb756-50da-4bae-a0fe-e3b8b5d3e6b2/vendors-node_modules_babylonjs_core_Shaders_ShadersInclude_bakedVertexAnimation_js-node_modul-3ca487.bundle.js
During the Webpack build these are displayed:
assets by status 44.2 MiB [compared for emit]
assets by chunk 3.35 MiB (id hint: vendors)
asset vendors-node_modules_babylonjs_core_ShadersWGSL_pbr_fragment_js.bundle.js 421 KiB [compared for emit] (id hint: vendors)
asset vendors-node_modules_babylonjs_core_Shaders_pbr_fragment_js.bundle.js 415 KiB [compared for emit] (id hint: vendors)
asset vendors-node_modules_babylonjs_core_Animations_animationGroup_js.bundle.js 285 KiB [compared for emit] (id hint: vendors)
+ 25 assets
+ 102 assets
In my webpack.common.js is adds this to the dependOn list for the page entry:
bjsCore: ['@babylonjs/core', 'pepjs'],
Do I need to include other packages now in that list?
I have tried adding the other BJS packages but that didn’t fix it:
bjsCore: [
'@babylonjs/core',
'pepjs',
'@babylonjs/materials',
'@babylonjs/serializers',
'@babylonjs/loaders'
],
Thanks,
Michael