nodegui / svelte-nodegui-starter

55 stars 8 forks source link

Type error in starter template #7

Closed bihanviranga closed 2 years ago

bihanviranga commented 2 years ago

When I run the starter template I get a type error: TS2345: Argument of type 'typeof SvelteComponentDev' is not assignable to parameter of type 'typeof SvelteComponent'.

Steps I followed:

Complete error message: image

What I tried:

Any ideas how to fix this? I could not find anything relevant in the FAQ or previous issues. Thank you for the awesome work you are doing.

shirakaba commented 2 years ago

I’m guessing some subdependency has changed.

Could you try removing all the ^ from the version ranges in package.json, deleting the package-lock.json, removing node_modules and rerunning yarn install?

shirakaba commented 2 years ago

Note also that I can’t guarantee that it works with yarn at all! You may have more luck with npm.

bihanviranga commented 2 years ago

Thank you for the response. I got it to work (sort of, GUI is broken) by following your advice.

I'll list what I did here in case it helps someone else.

It doesn't show any errors now. The app loads fine. But the GUI is broken as mentioned in #4

Since my original issue is resolved, I'll close this issue. Thank you very much for the help!