Skip to content

Inspector is not working currectly #32191

@gobinda-das-dev

Description

@gobinda-das-dev

Description

Recently saw that 3js added inspector, but the typesafety is not good, but that's not a big issue.

I'm just adding //@ts-ignre where I'm getting an issue like here or ex

// @ts-ignore
import { Inspector } from 'three/addons/inspector/Inspector.js';

and also doing this

interface WebGPURendererWithInspector extends WebGPURenderer {
  inspector?: Inspector;
}

bcoz we don't have any inspector property inside webgpurenderer.

ok that's still fine but now I encountered something, I'm getting this

RendererInspector.js:333 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'push')
    at Inspector.inspect (RendererInspector.js:333:21)

please 3js team fix this 🥹.
I'm ready to answer any questions you've.

thank you ❤️

Reproduction steps

  1. Use renderer.inspector.
  2. Add any lights or ssgi pass.
  3. Then, when you render, you'll get that error.

Code

// code goes here

Live example

Screenshots

Image

Version

181

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions