babylon.gui.d.ts is not a module
See original GitHub issueHi,
I started using BabylonJS with Typescript and it works flawlessly - all definitions are correct and there’re no problems when importing the main library. The problems occurs when I want to use use extensions library BabylonJS GUI. When installing it from NPM and importing it by:
import { AdvancedDynamicTexture, Button } from 'babylonjs-gui';
I’m getting following error:
File babylon.gui.d.ts is not a module
I see, that BabylonJS package and GUI extension differ a little bit - when investigating package.json
file for both there’re differences in typings
property, which is babylon.module.d.ts
for BabylonJS and babylon.gui.d.ts
for GUI.
What is the correct way to import this extension using NPM package?
I’m using 3.1.0-alpha1
for BabylonJS and 3.1.0-alpha1.2
for GUI.
Best regards, Kamil
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
We are working on a fix:)
Current ETA: end of next week 😄