Comments (6)
/* global webpack_public_path:writable */
可以试着加下这个,我的解决了,是eslint不允许访问变量
from micro-frontends-practice.
请问下解决了吗
from micro-frontends-practice.
运行了下react_也是报这个错误
from micro-frontends-practice.
/* global webpack_public_path:writable */
可以试着加下这个,我的解决了,是eslint不允许访问变量
这个是注释加到public-path.js文件当中?
from micro-frontends-practice.
是的
from micro-frontends-practice.
还可以在public-path.js里面写一行注释 // eslint-disable-next-line no-undef 即可解决eslint的这个报错。public-path.js的完整代码如下
if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
}
qiankun官方文档里有这段代码,不要随便改或者删掉那行注释,是有用的~
from micro-frontends-practice.
Related Issues (6)
- 子应用无法独立运行 HOT 1
- 不重启子项目 那也能正常显示
- 跳转creatreactapp下,报如下错误 HOT 2
- 启动子项目报错 但是父项目启动后 依然可以运行 HOT 1
- 請問父應用與子應用之間要怎麼通訊 HOT 1
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 micro-frontends-practice.