lit / lit-element

LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
https://lit-element.polymer-project.org
BSD 3-Clause "New" or "Revised" License
4.49k stars 318 forks source link

Under certain conditions, errors inside updated method are silenced #1131

Closed dimadk24 closed 3 years ago

dimadk24 commented 3 years ago

🐛 Bug Report

Under certain conditions, all errors inside updated method are silenced. This complicates debugging and can introduce very difficult to debug and unclear issues.

To Reproduce

Actual behavior

Error is caught and silenced inside updating-element.ts line 720 No error in the console

Expected behavior

Error is thrown and visible in the console

Link to reproducible sandbox

https://stackblitz.com/edit/znghnm?file=my-element.js

Note: when set property inside connectedCallback everything works fine. But it should also work fine when set inside firstUpdated

sorvell commented 3 years ago

This is a dup of https://github.com/Polymer/lit-element/issues/1081 and is fixed in the next major version. We hope to release the next version this quarter.