Hello,
I am trying to incorporate CreateLineSystem
into. my Typescript/ES6 application. I get an error when importing only the particular file such as:
import { CreateLineSystem } from '@babylonjs/core/Meshes/Builders/linesBuilder';
core.mjs:11760 ERROR TypeError: Cannot read properties of undefined (reading 'SRC_ALPHA')
at _Engines_thinEngine_js__WEBPACK_IMPORTED_MODULE_0__.ThinEngine.setAlphaMode (engine.alpha.js:30:71)
at LinesMesh.render (mesh.js:1893:20)
at SubMesh.render (subMesh.js:349:29)
at RenderingGroup._RenderSorted (renderingGroup.js:202:21)
at RenderingGroup._renderTransparentSorted (renderingGroup.js:162:31)
at RenderingGroup.render (renderingGroup.js:127:22)
at RenderingManager.render (renderingManager.js:125:28)
at Scene._renderForCamera (scene.js:3502:32)
at Scene._processSubCameras (scene.js:3527:18)
at Scene.render (scene.js:3785:18)
However, the application works when I import from @babylonjs/core
.
I guess I am missing some sideeffect import. Does anyone know which one I am missing? Or am I on the wrong page?
Best regards,
Axel