I’m starting programming in typescript, and I want to use BabylonJS for my first little project. One thing though, is that every time I try to compile the TSC file, I get this error bellow. I’ve tried to change the “lib” and “target” on my tsconfig.json, however, nothing happerns.
Could someone helps me?
felipeaamacedo@felipeaamacedo-VivoBook-ASUSLaptop-X570ZD-X570ZD:~/Documents/Projects/babylon_typescript_tutorial$ tsc scripts/TSintro.ts
node_modules/babylonjs/babylon.module.d.ts:143281:19 - error TS2583: Cannot find name ‘Set’. Do you need to change your target library? Try changing the
lib compiler option to es2015 or later.
143281 type XRPlaneSet = Set<XRPlane>; ~~~ node_modules/babylonjs/babylon.module.d.ts:143282:20 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later. 143282 type XRAnchorSet = Set<XRAnchor>;