-
Hi, great package, appreciate the work. I'm trying to get a vue3 vite typescript app running as a micro-frontend. Does this package support using npm run dev for micro-frontends or do you have to use build & preview? Is there an example somewhere of getting a vue3 vite typescript app to work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This package supports using I don't have concrete examples uploaded anywhere, unfortunately. I do have some work done on a project called "API Market", that is meant as a database for API's devs can use in their apps. It uses What I can offer is my blog series, where I used React, Svelte and Vue to investigate about |
Beta Was this translation helpful? Give feedback.
I quickly reviewed your sample. Your Vite project will bundle in ESM format, but your root config is set to use webpack and bundle in the SystemJS module format. This mismatch clearly won't work. If you create your root config project using the tool from the
single-spa
team, you must then set your Vite project to also output in the SystemJS module format. HOWEVER, Vite cannot deliver in SystemJS format when run in serve modenpm run dev
.This is why all my documentation doesn't even tell you to use the
single-spa
team's tooling. It is far easier to just use this plug-in in all-ESM format. Read my blog carefully to learn how to do this.If you want to create a root config project that is V…