DEV Community

arpit-krazybee
arpit-krazybee

Posted on

<SvelteComponent this={First} > cant able to create Constructor

I am trying to merge my app with the basic app but it keep on showing this error
SvelteComponent.componentDidMount
node_modules/react-svelte-component/dist/index.es.js:61
58 | constructor = _a.this,
59 | props = __rest(_a, ["this"]);
60 |

61 | this.instance = new constructor({
| ^ 62 | target: this.container.current,
63 | props: props
64 | });

I created the basic counter ReactApp into that i was just added the . svelte file and tried to load it using <SwelteComponent this={First(svelte) file} . I already imported

import SvelteComponent from 'react-svelte-component';
import First from './First.svelte';

please help someone

Top comments (0)