CommonJS import * as StateMachine from '@taoqf/javascript-state-machine'; UMD Add this to your project tsconfig.json file: { "compilerOptions": { ... "types": ["javascript-state-machine"] } }