single-spa / single-spa-vue

a single-spa plugin for vue.js applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI creates Parcel app with Vue and Typescript throws errors on `yarn serve`

creynir opened this issue · comments

I was trying to create parcel single-spa app via cli with Vue3 + TypeScript and when I'm trying to run I get errors:
image
image

Since I'm pretty new to TS I have little to no idea how to fix it. Would appreciate any help here

I'm transferring this to the single-spa-vue repo because this is a problem with the included types. We added createApp to the API to support Vue 3 but forgot about the types.

EDIT: I released this in v1.10.1 so you should just need to yarn install again and it should work. Please feel free to re-open this issue if the types are still incorrect.

@creynir I opened up a PR with a fix for this. Can you try copying over the types into the types file for single-spa-vue in your node_modules directory? I'd like to validate with another project in addition to my own.