Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in src/app.ts:4:15 TS2345: Argument of type 'typeof SvelteComponentDev' is not assignable to parameter of type 'typeof SvelteComponent'. Types of construct signatures are incompatible. #9

Open
shenghan97 opened this issue Dec 5, 2021 · 2 comments

Comments

@shenghan97
Copy link

Hey!

I just cloned this repository and installed dependencies but when I tried to run npm run dev. I got this error message:

ERROR in src/app.ts:4:15
TS2345: Argument of type 'typeof SvelteComponentDev' is not assignable to parameter of type 'typeof SvelteComponent'.
  Types of construct signatures are incompatible.
    Type 'new (options: IComponentOptions<Record<string, any>>) => SvelteComponentDev' is not assignable to type 'new (options: { target?: NSVElement<NativeView<Component>> | Element; props?: any; anchor?: NSVElement<NativeView<Component>> | Element; intro?: boolean; }) => SvelteComponent'.
      Types of parameters 'options' and 'options' are incompatible.
        Type '{ target?: NSVElement<NativeView<Component>> | Element; props?: any; anchor?: NSVElement<NativeView<Component>> | Element; intro?: boolean; }' is not assignable to type 'IComponentOptions<Record<string, any>>'.
          Types of property 'target' are incompatible.
            Type 'NSVElement<NativeView<Component>> | Element' is not assignable to type 'Element | ShadowRoot'.
              Type 'NSVElement<NativeView<Component>>' is not assignable to type 'Element | ShadowRoot'.
                Type 'NSVElement<NativeView<Component>>' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 139 more.

Hope there's a fix for that! Thanks

@eikaramba
Copy link

@alber70g
Copy link

Any resolution on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants