Bundling with rollup - Uncaught TypeError: Class constructor LitElement cannot be invoked without 'new'
See original GitHub issueDescription
Bundling with rollup - Uncaught TypeError: Class constructor LitElement cannot be invoked without ‘new’
Live Demo
https://github.com/johnlim/my-element.git
Steps to Reproduce
- Clone the repo
npm install
./node_modules/.bin rollup -c
- Serve index.html
- console error
Uncaught TypeError: Class constructor LitElement cannot be invoked without 'new'
Expected Results
Custom lit-element should be rendered
Actual Results
Console error Uncaught TypeError: Class constructor LitElement cannot be invoked without 'new'
Browsers Affected
- [ *] Chrome
- Firefox
- Edge
- Safari 11
- Safari 10
- IE 11
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Class constructor LitElement cannot ...
Description Bundling with rollup - Uncaught TypeError: Class constructor LitElement cannot be invoked without 'new' Live Demo ...
Read more >How to fix `Class constructor LitElement cannot be invoked ...
Based on others suggestion I have tried setting tsconfig target to "es2016" but this does not solve the error. my-element.ts import { LitElement ......
Read more >Class constructor cannot be invoked without 'new' in TS
The "Class constructor cannot be invoked without new" error occurs when the target property in tsconfig.json is set to lower than es6 or...
Read more >TypeError: Class constructor HTMLElement cannot be invoked ...
This error occurs while running a unit test. The component that you are running has probably some 3rd party code which contains class...
Read more >Feb 28, 2019
When using parceljs I get this error: Uncaught TypeError: Class constructor LitElement cannot be invoked without 'new' I can't get Polymer CLI to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Noooil Thanks! That works!
inline your babelrc into rollup.config.js like this