Open KlausHans opened 4 years ago
Did you solve your issue? I am interested in your solution and how you got it to work, that you can call "aimage.setObject3D(....)". How you integrated the Aframe Typings in Angular 9?
Did you solve your issue? I am interested in your solution and how you got it to work, that you can call "aimage.setObject3D(....)". How you integrated the Aframe Typings in Angular 9?
I think you both might want to try using the package @type/aframe
...
Check this link https://developer.aliyun.com/mirror/npm/package/@types/aframe
You can implement using the example here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/aframe/test/aframe-tests.ts
If you want to access AFrame DOM
, do so in the ngOnInIt
function
If that isn't your problem, you could check out this answer on Stackoverflow https://stackoverflow.com/a/62654149/4230014
Description:
With Angular 9, aframe is not working. The three.js dependency throws an error:
I think the cause is this: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#local-and-imported-type-declarations-now-conflict
I noticed, that with aframe three 0.103 gets installed (i don't get it why the latest version 0.113 gets ignored from npm). Now i installed the latest three package (0.113.2) by hand, but since that i get another error:
Any ideas?