Javascript error while editting page

If I edit a page, the following error is visible in the console (screenshot).
The strange thing is, if I refresh the page, the issue is solved.
Has anyone ever experienced this before?

It probably has to do with the minified js file that’s stored in the cache. If it goes away after refresh, and if you’re not seeing any errors on the front end when logged out or incognito, then you’re all good and the cache cleared itself like it was supposed to. You can always manually clear the BB cache by going to the wp-admin menu, Settings > Beaver Builder > Tools