$ 0 0 This error can be caused by TypeScript code being interpreted as regular vanilla JavaScript. See this answer.