Trying to use Typedoc on bjs project but it fails because of errors in Babylon. Is it ok?

Tha’t what I’m trying to do:

$ npx typedoc --out docs src/index.ts
../../../../node_modules/@babylonjs/inspector/dist/babylon.inspector.module.d.ts:1300:15 - error TS2503: Cannot find namespace 'JSX'.

1300     render(): JSX.Element | null;
                   ~~~

../../../../node_modules/@babylonjs/inspector/dist/babylon.inspector.module.d.ts:5553:34 - error TS2503: Cannot find namespace 'JSX'.

5553     renderProperties(): Nullable<JSX.Element>;
                                      ~~~

../../../../node_modules/@babylonjs/inspector/dist/babylon.inspector.module.d.ts:7050:10 - error TS2305: Module '"react"' has no exported member 'ReactChild'.

7050 import { ReactChild } from "react";
              ~~~~~~~~~~

[error] Found 3 errors and 0 warnings

I have installed React. Am I missing something?

What are you trying to document and why the Inspector is there?

1 Like

Hm, that’s a good question :smile: I’m trying to document only my source files, not BabylonJS but now I think I started to understand that Typedoc documents BJS code as well :smile: which is not what I need actually :smile: Ok, thank, I got it. I should check Typedoc configs why is this happening!

1 Like