We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
假设子应用部署在地址demo.jstest.com这个域名上,在加载的时候会由于能匹配到.js,导致给html内容包装成micro的结构
demo.jstest.com
.js
micro-app/src/source/loader/html.ts
Line 27 in 9760472
进而导致将子应用的访问地址作为src进行代理,最终渲染的内容就变成
src
;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(window,self,globalThis,document,Document,Array,Object,String,Boolean,Math,Number,Symbol,Date,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,navigator,undefined,location,history){ ;<!doctype html><html>...</html> }).call(...)
结果就是在控制台上抛出报错
/:1 Uncaught SyntaxError: Unexpected token '<'
192.168.1.9:8080
请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
The text was updated successfully, but these errors were encountered:
已修复,更新到1.0.0-rc.5版本即可
Sorry, something went wrong.
No branches or pull requests
问题描述
假设子应用部署在地址
demo.jstest.com
这个域名上,在加载的时候会由于能匹配到.js
,导致给html内容包装成micro的结构micro-app/src/source/loader/html.ts
Line 27 in 9760472
进而导致将子应用的访问地址作为
src
进行代理,最终渲染的内容就变成结果就是在控制台上抛出报错
复现步骤
192.168.1.9:8080
,能正常渲染子应用demo.jstest.com
,控制台报错上传截图
复现仓库
环境信息
The text was updated successfully, but these errors were encountered: