TypeDoc complains “Cannot find module”
问题 I have a Typsecript based react app. It works fine but I want to add TypeDoc (think JSDoc for Typescript) to the mix. After installing it I run this from the command line (only processing a single file as I test this): typedoc --module commonjs --jsx react --out ../docs/ ./src/components/404/404.tsx and I get an error: Error: /path/to/project/src/components/404/404.tsx(0) Cannot find module 'react'. React is, in fact, installed. I have tried running TypeDoc installed globally and locally and