Skip to content

Error occurred while rendering #251

@pixelknight1

Description

@pixelknight1

Getting an error when clicking an actor that prevents the UI from rendering. Note, unable to switch the Monster Block sheet to an actor created from scratch, but changed the sheet from a 5e imported monster.

Repro:

  1. Import a 5e monster
  2. Click on the monster either in the actors list or in the environment
  3. Observe the error is created in the console, but no UI becomes visible on the screen

Copy of Error Stack:
Error: An error occurred while rendering MonsterBlock5e 36. value.toFixed is not a function
[No packages detected]
at Hooks.onError (foundry.js:654:24)
at 🎁Hooks.onError#0 (libWrapper-wrapper.js:188:54)
at foundry.js:5795:13Caused by: TypeError: value.toFixed is not a function
[No packages detected]
at Object.numberFormat (foundry.js:8063:74)
at Object.c (handlebars.min.js:27:27865)
at eval (eval at createFunctionContext (handlebars.min.js:29:10011), :19:157)
at h (handlebars.min.js:27:25975)
at c (handlebars.min.js:27:6943)
at handlebars.min.js:27:7576
at Array.forEach ()
at handlebars.min.js:27:7544
at Object. (handlebars.min.js:27:7619)
at Object.c (handlebars.min.js:27:27865)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :13:49)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at Object.h (handlebars.min.js:27:26843)
at Object.c [as invokePartial] (handlebars.min.js:27:23141)
at eval (eval at createFunctionContext (handlebars.min.js:29:10011), :11:28)
at Object.h [as fn] (handlebars.min.js:27:25975)
at Object. (handlebars.min.js:27:18211)
at Object.c (handlebars.min.js:27:27865)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :12:47)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at Object.h (handlebars.min.js:27:26843)
at Object.c [as invokePartial] (handlebars.min.js:27:23141)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :21:28)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at Object.h (handlebars.min.js:27:26843)
at Object.c [as invokePartial] (handlebars.min.js:27:23141)
at eval (eval at createFunctionContext (handlebars.min.js:29:10011), :10:31)
at Object.h [as inverse] (handlebars.min.js:27:25975)
at Object. (handlebars.min.js:27:18195)
at Object.c (handlebars.min.js:27:27865)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :23:47)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at renderTemplate (foundry.js:7902:10)
at async MonsterBlock5e._renderInner (foundry.js:6013:16)
at async MonsterBlock5e._renderInner (foundry.js:6583:18)
at async MonsterBlock5e._render (foundry.js:5844:19)
at async MonsterBlock5e._render (foundry.js:6572:5)
at async MonsterBlock5e._render (foundry.js:7158:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions