Setup three.js + ar.js with latest angular

Hi, i’m trying to use AR.js on my angular app, and i can’t make it working.

I import ar-threex.js to my index.html as type module, and it says that THREE is undefined.

Can someone help me on this?