joeldenning / coexisting-vue-microfrontends

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

Application died in status LOADING_SOURCE_CODE: window.Vue.use is not a function #25

Closed linchanglin closed 4 years ago

linchanglin commented 4 years ago

singleSpa.registerApplication( 'proj1', () => System.import('proj1'), location => location.hash.startsWith('#/jpro') // location => true )

when I use: location => location.hash.startsWith('#/jpro') , I get the error below,but it works fine when I use: location => true; I don't konw why? please help me. thanks a lot

Uncaught proj1: Application 'proj1' died in status LOADING_SOURCE_CODE: window.Vue.use is not a function at Module../node_modules/vue-router/dist/vue-router.esm.js (http://localhost:8002/app.js:261976:14) at webpack_require (http://localhost:8002/app.js:778:30) at fn (http://localhost:8002/app.js:141:20) at Module../src/router/index.js (http://localhost:8002/app.js:283598:68) at webpack_require (http://localhost:8002/app.js:778:30) at fn (http://localhost:8002/app.js:141:20) at Module../src/main.js (http://localhost:8002/app.js:281169:67) at __webpack_require__ (http://localhost:8002/app.js:778:30) at fn (http://localhost:8002/app.js:141:20) at Object.2 (http://localhost:8002/app.js:284653:18)

linchanglin commented 4 years ago

this my framework mistake 。。sorry

linchanglin commented 4 years ago

this my framework mistake 。。sorry