Skip to main content

Refresh the Logger

Clear the Lens Studio Logger and use the TypeScript Status window to see only the compilation errors that stop your Lens from running.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

The Logger records errors as Lens Studio sees them, so it can keep showing errors you've already fixed. Only some of them are compilation errors, which stop your Lens from running. To see where the project stands now, clear the Logger and check the TypeScript Status panel.

Refresh the Logger to show current compilation errors

  1. In the Logger panel, select the Clear button (the brush icon) to remove the old messages.

    The Logger with old Interaction Kit errors still listed, and its Clear button, a brush icon, circled in red
  2. Select Window > Utilities > TypeScript Status.

    The Window menu open on Utilities, with TypeScript Status outlined in red in its submenu
  3. In the TypeScript Status panel, check the result. A green check and "TypeScript compilation succeeded!" mean the project compiled with no errors.

    The TypeScript Status panel with a green check and TypeScript compilation succeeded

    A red triangle and "TypeScript compilation failed!" mean there are compilation errors. Select Show Errors in Logger to list them in the Logger.

    The TypeScript Status panel with a red triangle, TypeScript compilation failed, and the Show Errors in Logger button