- Token
'Greeter'is supposed to matchGreeter(needsgreet). - We register
WrongGreeter(only hassayHello). - TypeScript passes (
npx tsc --noEmit) because the string token is untyped. - Runtime blows up:
this.greeter.greet is not a function.
Run:
npm install