joeldenning / coexisting-vue-microfrontends

A repo showing separate vue apps coexisting as microfrontends with single-spa
http://coexisting-vue-microfrontends.surge.sh/
MIT License
615 stars 143 forks source link

When I don't start the root service, but I start the app1 service #42

Closed kavinluo closed 4 years ago

kavinluo commented 4 years ago

When I don't start the root service, but I start the app1 service Address: http://localhost:8081

image I did the following!

cd app1
npm i
npm run serve

The information I see is as follows, individual APP1 can not work, I understand it should be able to work independently, but it can not! When I start the root service at the same time, URL: http://localhost:5000/app1 It works

ssy-tom commented 4 years ago

me,too

joeldenning commented 4 years ago

You should not go to each application individually in the browser, but instead follow the instructions in the Readme. In other words, never go to http://localhost:8081 directly to run app1. See the following links for instructions: