Tencent / hel

A module federation SDK which is unrelated to tool chain for module consumer. 工具链无关的运行时模块联邦sdk.
https://tencent.github.io/hel/
Other
933 stars 79 forks source link

hel vue2 升级 vue3 运行时提示问题 #26

Closed feZsy closed 1 year ago

feZsy commented 1 year ago

hel vue2 升级 vue3 运行时提示问题警告,这是说hel目前支持vue2?

** [hel-runtime/level1-vue vue and others] ** v1-2.6.14-vue.js:7541 vue: 2.6.14

image

fantasticsoul commented 1 year ago

你好,尝试将 public/index.html 里的 vue cdn链接换为这个再试试看呢 https://tnfe.gtimg.com/hel-runtime/level1/3.2.33-vue.js

feZsy commented 1 year ago

测试工程地址:https://github.com/wenshuangz/hel-tpl-remote-vue-comp

升级后提示这个 ** [hel-runtime/level1-vue vue and others] ** 3.2.33-vue.js:64941 vue,@vue/compiler-dom,@vue/compiler-sfc,@vue/runtime-core,@vue/runtime-dom,@vue/shared,@vue/reactivity: 3.2.33

image

fantasticsoul commented 1 year ago

貌似vue2和vue3组件模板不能通用,我基于 @vue/cli 重新创建一个vue3的远程组件模板吧😭

feZsy commented 1 year ago

万分感激,大佬什么时候搞vue3模板,等米下锅😄

fantasticsoul commented 1 year ago

万分感激,大佬什么时候搞vue3模板,等米下锅😄

正在搞了,支持以 webpack 和 vite 两种模式开发,打包还是用webpack

fantasticsoul commented 1 year ago

模板出炉了: https://github.com/hel-eco/hel-tpl-remote-vue3-comps-ts

fantasticsoul commented 1 year ago

codesandbox使用示例也提供了: https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js