Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Uncaught TypeError: Illegal constructor when creating svelte web component

$
0
0

I am trying to create a web component from a svelte project that uses the svelvet component library. I am using <svelte:options tag="my-element" /> in my App.svelte file and set customElement: true in my rollup config file for generating the web component. When I build and run my project, I don't see anything displayed and the browser console displays the error "Uncaught TypeError: Illegal constructor". What else could be causing this issue?

Here is a link to the project in github:https://github.com/mansary2/svelte-web-component


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>