ExternalError: ReferenceError: component is not defined

I logged in to anvil this morning to find that when I start my app, and add a component via code, I receive the following error: ExternalError: ReferenceError: component is not defined

Not really sure what to do here. I didn’t change anything about the app since I last used it.

That sounds like a problem on our end, we’ll try and track it down. Are you able to get a screenshot of the error in your Developer Tools JavaScript console?

[Moved to bug reports]

Here is a screenshot of the error with the JS Console:

And here is the full stack error in the console:

"ReferenceError: component is not defined
    at https://anvil.works/runtime/js/runner.bundle.js?buildTime=1530870666:154:1855
    at n (https://anvil.works/runtime/js/runner.bundle.js?buildTime=1530870666:1:1531)
    at pt.builtin.func.tp$call (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:2:319029)
    at pt.builtin.method.tp$call (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:3:12301)
    at Object.pt.misceval.applyOrSuspend (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:3:27728)
    at Object.pt.misceval.apply (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:3:23893)
    at Object.pt.misceval.call (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:3:22747)
    at Arguments.<anonymous> (https://anvil.works/runtime/js/runner.bundle.js?buildTime=1530870666:9:122341)
    at Object.pt.misceval.chain (https://anvil.works/runtime/js/lib/skulpt.bundle.js?buildTime=1530870666:3:25135)
    at n (https://anvil.works/runtime/js/runner.bundle.js?buildTime=1530870666:9:121768)"

Thanks very much. That made it very easy to track down and fix. You should be good to go again now!

1 Like