Error: Error thrown in the snapshot context

Am working with Forge UI KIT to add calendar event from confluence. when I run the code below, it throws error.

Error: Error thrown in the snapshot context.
App code snapshot error: Snapshot error occurred: Error: SpacePage is not defined
Learn more about the snapshot context at

I’m not familiar with SpacePage but you might be able to understand the problem better by skipping the snapshot step.

This should let you deploy your app though your app will become slower. I imagine this isn’t a huge deal during debugging though.