How to make ionic2 work with threejs and three-obj-loader


#1

I try to load .obj files in ionic2 with threejs,I had installed threejs and [three-obj-loader][1]
[1]: https://www.npmjs.com/package/three-obj-loader
I require them like this:

import * as THREE from 'three';
import * as OBJLoader from 'three-obj-loader';

How can I use the OBJLoader in ionic2? When I try to do like the Usage [three-obj-loader][1]
[1]: https://www.npmjs.com/package/three-obj-loader

OBJLoader(THREE);
console.log(typeof THREE.OBJLoader);

The build script tell me:Property ‘OBJLoader’ does not exist on type ‘typeof THREE’.
I have no idea about this!I need some help!


#2

Did you ever resolve the problem?