# Argument of type 'import("babylonjs/Events/pointerEvents").PointerInfo' is not assignable to parameter

**URL:** <https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455>\
**Category:** Questions\
**Created:** [December 9, 2020, 9:00am UTC](https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455 "2020-12-09T09:00:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11123](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/11123/32/10880_2.png) [@11123](https://forum.babylonjs.com/u/11123)\
**Post date:** [December 9, 2020, 9:00am UTC](https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455/1 "2020-12-09T09:00:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a0bd57e4cc631fd0243447e2a7729e6b95178a59.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/490141fe13d1af3eedf9dcece6b5dff2f7faa804.png)  
typescript : 3.9.7;  
bjs: 4.2.0  
error report

```auto
Argument of type 'import("babylonjs/Events/pointerEvents").PointerInfo' is not assignable to parameter of type 'BABYLON.PointerInfo'.
  The types of 'pickInfo.pickedPoint.toQuaternion().equals' are incompatible between these types.
    Type '(otherQuaternion: import("babylonjs/types").DeepImmutableObject<import("babylonjs/Maths/math.vector").Quaternion>) => boolean' is not assignable to type '(otherQuaternion: BABYLON.DeepImmutableObject<BABYLON.Quaternion>) => boolean'.
      Types of parameters 'otherQuaternion' and 'otherQuaternion' are incompatible.
        Type 'BABYLON.DeepImmutableObject<BABYLON.Quaternion>' is not assignable to type

```

In my ts project the code snippets report this error but perform normal in blow playground，am I did something wrong？

> **[Babylon.js Playground](https://playground.babylonjs.com/#CG3EQ7)**

---

<div class="post-metadata">

**Author:** ![Dreadbond](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dreadbond/32/12494_2.png) [@Dreadbond](https://forum.babylonjs.com/u/Dreadbond)\
**Post date:** [December 9, 2020, 9:45am UTC](https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455/2 "2020-12-09T09:45:31Z")

</div>

`BABYLON.something` are imported as immutable object.

remove `BABYLON.` in your code and import the proper dependencies (ctrl + shit + ; on Vscode)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 9, 2020, 4:04pm UTC](https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455/3 "2020-12-09T16:04:17Z")

</div>

Exactly what @Dreadbond said, you are mixing the usage of the umd named module and import creating the conflict for your transpiler.

---

<div class="post-metadata">

**Author:** ![11123](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/11123/32/10880_2.png) [@11123](https://forum.babylonjs.com/u/11123)\
**Post date:** [December 17, 2020, 1:16am UTC](https://forum.babylonjs.com/t/argument-of-type-import-babylonjs-events-pointerevents-pointerinfo-is-not-assignable-to-parameter/16455/4 "2020-12-17T01:16:23Z")

</div>

sorry to so late reply, you are correct. I should keep the consistent of import way.
