I npm installed pixi.js into a typescript project. This line (found in many examples) does not work:
import * as PIXI from 'pixi.js';
I get the error "Cannot find module 'pixi.js'"
I tried this workaround and it works fine:
const PIXI = require('pixi.js');
The problem is that this loses the type information I want. Pixi has a d.ts file, so I should be getting types. What am I doing wrong here?
-e