Comments (14)
window.getPublicPath is not a function
子项目中是否有set-public-path.js,是否正确引入
from coexisting-vue-microfrontends.
set-public-path.js:1 Uncaught TypeError: window.getPublicPath is not a function
at Object../src/set-public-path.js (set-public-path.js:1)
at webpack_require (bootstrap:723)
at fn (bootstrap:100)
at Module../src/main.js (HelloWorld.vue?7a45:1)
at webpack_require (bootstrap:723)
at fn (bootstrap:100)
at Object.0 (Home.vue?3b23:1)
at webpack_require (bootstrap:723)
at bootstrap:790
at bootstrap:790
图片上传不了
from coexisting-vue-microfrontends.
直接项目下下来,按他步骤跑不起来
from coexisting-vue-microfrontends.
直接项目下下来,按他步骤跑不起来
- 截图直接可以拖拽到github上,自动上传
- 项目下载之后依赖是否安装正确,最好使用cnpm(重要)
- 对,就是先把项目下来,别接入自己的项目,跑不起来,报错是什么?
from coexisting-vue-microfrontends.
1.截图直接可以拖拽到github上,自动上传好像失效了,我这边传不上
from coexisting-vue-microfrontends.
项目我就是用cnpm装的,我没有接自己的项目就是他的项目跑不起来
from coexisting-vue-microfrontends.
你项目下载下来可以跑吗
from coexisting-vue-microfrontends.
from coexisting-vue-microfrontends.
发现问题了,是有个端口被占用了
from coexisting-vue-microfrontends.
- 刚才重新下载项目测试了一下,可以跑起来。
- 建议你删除所有的node_modules然后重新安装,在跑起来
- 这个项目问题还是不少的,可以研究,最好是使用淘宝qiankun技术方案
from coexisting-vue-microfrontends.
发现问题了,是有个端口被占用了
做微前端的项目,注意端口,因为从开发到部署,端口太多了,而且必须要严格kill
from coexisting-vue-microfrontends.
Note that I have updated this project to use systemjs-webpack-interop. This removed the getPublicPath
function.
See 1253942 for more information.
from coexisting-vue-microfrontends.
@joeldenning , Hi,can you tell us why to use systemjs-webpack-interop
and removed the getPublicPath
function ? I cannot understand..The reason just is which can set the webpack public path "on the fly" to work with the dynamic url for the bundle in SystemJS' import map ? But it requires systemjs@>=6 and webpack@>=4.30.0
...I think it's not a good way.
from coexisting-vue-microfrontends.
systemjs-webpack-interop has some features that getPublicPath did not, including ability to calculate a public path that is multiple directories above where the entry file is.
Using systemjs@6 is part of the core team's recommended setup, which is why it is encouraged in this repo.
Vue CLI uses webpack@>=4.30, so I don't see that as a problem.
You can read more about why we're doing this at all and the reasoning behind it at https://single-spa.js.org/docs/faq/#code-splits
from coexisting-vue-microfrontends.
Related Issues (20)
- [QUESTION] Vite version of this O_O
- Coexisting vue2 and vue3
- Uncaught Error: systemjs-webpack-interop: There is no such module 'app1' in the SystemJS registry. Did you misspell the name of your module? HOT 1
- We're sorry but app1 doesn't work properly without JavaScript enabled. Please enable it to continue. HOT 1
- 请问如果需要通过router的name跳转页面,有没有好的解决方案呢?目前是不是只支持path跳转 HOT 5
- Issues with vue cli v4.x.x still happen HOT 2
- Images from the individual applications doesnt appear HOT 3
- I got the following error after my first clone! HOT 3
- When I don't start the root service, but I start the app1 service HOT 2
- app.js:1 Uncaught navbar: Application 'navbar' died in status LOADING_SOURCE_CODE: Unexpected token '<' HOT 3
- What happens when I add my own project to start?
- When I visited it, I found that it didn't seem to work anymore HOT 2
- codes can not be cloned HOT 1
- why do this in 'root-html-file/index.html' HOT 2
- My current needs need to be able to communicate in various projects and pass data to each other for access. HOT 1
- Question: New Example Repo HOT 2
- vue 3 and vue-router 4 HOT 6
- 跨域了,这么办呢 HOT 2
- what if we use third-party ui library like element-ui,and has to import seperate css file HOT 2
- How to add SSR the proper way to this project? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coexisting-vue-microfrontends.