module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.27k stars 182 forks source link

how can I use in vue3 ts template #2685

Open zeihangSaber opened 2 days ago

zeihangSaber commented 2 days ago

Describe the bug

image

how can I use in vue3 ts template

Reproduction

https://github.com/zeihangSaber/rsbuild-vue3-ts

Used Package Manager

pnpm

System Info

none

Validations

HUST-SE-LY commented 1 day ago

For me, switching the vue-tsc version to 1.8.27 works.

WeetA34 commented 1 day ago

Hello,

another thing fyi, pnpm create rsbuild@latest (vue3, typescript) doesn't install vue-tsc for the types generation.

ScriptedAlchemy commented 1 day ago

@WeetA34 please file issue with rsbuild regarding this. maybe its supposed to be a peer dependency, not sure.

WeetA34 commented 1 day ago

Hello @ScriptedAlchemy, rsbuild is able to build vue typescript app without vue-tsc. It uses tsc directly. Once types generation issue with tsc (or vue-tsc 2+) is fixed, I guess we don't need vue-tsc anymore on a rsbuild project

2heal1 commented 22 hours ago

Currently you can set vue-tsc@1.x to skip the issue , but the types can not generate normally , I will fix it .