Jump to content

Typescript compilation problem


Temechon
 Share

Recommended Posts

Hello all, 

 

I was working on the Gamepad API, and found several issues with Chrome. I fixed it in js, but I thought "Hey, I will try to make a pull request in Typescript, it will surely help the dev team !"

 

However, I cannot compile the project (with PHPStorm/VS2013). Here are my errors : 

 

D:/BABYLONJS/trunk/Babylon/Materials/textures/babylon.videoTexture.ts(36,24): error TS2339: Property 'src' does not exist on type 'HTMLElement'.D:/BABYLONJS/trunk/Babylon/Mesh/babylon.mesh.ts(840,53): error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'Uint8Array'.D:/BABYLONJS/trunk/Babylon/Mesh/babylon.mesh.ts(1113,122): error TS2345: Argument of type 'number[]' is not assignable to parameter of type 'Uint8Array'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.database.ts(260,58): error TS2339: Property 'error' does not exist on type 'Element'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.database.ts(379,50): error TS2339: Property 'error' does not exist on type 'Element'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.database.ts(510,58): error TS2339: Property 'error' does not exist on type 'Element'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.tools.ts(294,35): error TS2339: Property 'result' does not exist on type 'EventTarget'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.tools.ts(303,35): error TS2339: Property 'result' does not exist on type 'EventTarget'.D:/BABYLONJS/trunk/Babylon/Tools/babylon.tools.ts(537,32): error TS2339: Property 'set' does not exist on type 'number[]'.

 

Where do these errors comes from ? I tried to google it but no results...

Moreover, I can see these two files have been committed : babylon.debugLayer.d.ts and babylon.debugLayer.js.map

Is it a mistake ?

 

Thank you for your help !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...