Skip to content

Typescript errors in ArMarkerHelper and ArToolkitSource.ts #14

Closed
@kalwalt

Description

@kalwalt

I get errors like this in a testing repository:
For ArMarkerHelper.ts:

 ERROR in C:\path\to\node_modules\@ar-js-org\ar.js-threejs\src\ArMarkerHelper.ts(22,16)
      TS2339: Property 'width' does not exist on type 'Entity<ObjectMap<Component<any, System<any>>>>'.

this is the code:

var canvas = document.createElement("canvas");
canvas.width = 64;
canvas.height = 64;

For ArToolkitSource.ts:

ERROR in C:\path\to\node_modules\@ar-js-org\ar.js-threejs\src\ArToolkitSource.ts(257,9)
      TS2740: Type 'Entity<ObjectMap<Component<any, System<any>>>>' is missing the following properties from type 'HTMLImageElement': align, alt, border, complete, and 23 more. 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions