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


I try to load .obj files in ionic2 with threejs,I had installed threejs and [three-obj-loader][1]
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]

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!


Did you ever resolve the problem?