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 319 forks source link

mixins don't work when using ESNext in tsconfig to compile #1180

Closed widcraft closed 2 years ago

widcraft commented 3 years ago

Description

There was no problem when I use commonJS to bundle my lit project. However, when I use ESNext, the bundling process is ok, but my page won't stop loading. I found out what causes the loading problem..... when I change props in mixin it causes the problem. Am I wrong to use mixin like this?

"target": "ES5"
"module": "ESNext"
"sourceMap": true
"outDir": "./dist" 
"rootDir": "./src"
"strict": true
"moduleResolution": "node"
"esModuleInterop": true
"experimentalDecorators": true
"skipLibCheck": true
"forceConsistentCasingInFileNames": true

Acceptance criteria

What the card must do in order to accept it as complete. Acceptance Criteria must be concrete or measurable.

sorvell commented 2 years ago

Closing due to age. If you're still having a problem with this, please post a reproduction using the lit.dev/playground. Thanks.