Installation
Automatic
For Angular CLI projects, run the following command:
ng add angular-three
For Nx users, run the following commands:
npm i angular-three
npx nx g angular-three:init
The generator (schematic) does the following:
- Installs
three
,@types/three
, andangular-three
(in the case of Angular CLI) - Turns on
skipLibCheck: true
Manual
npm i angular-three three
npm i -D @types/three
Next, open tsconfig.json
(or tsconfig.base.json
in an Nx Workspace) and add skipLibCheck: true
to compilerOptions