Open cjblomqvist opened 5 years ago
More specifically, this is caused by the BMapLib.TextIconOverlay lib, which is used by Lushu and MarkerClusterer. Since everything is imported right away, this causes all SSR to not work. This is unfortunate, as it's best practice to import frontend libs also in SSR build (to avoid having to many different code bases) - even if we are only rendering any map components in the frontend.
A possible workaround seems to be to only import selected modules.
One solution is to not import/export the extra components in the main file.
[BUG 反馈] SSR / BMapLib.TextIconOverlay causes break right away on import
浏览器版本号
-
Vue 版本号
2.6.x
组件库版本号
0.21.20
现象描述
完整异常信息
在线示例 / 仓库 URL
www.doesnotexist.com
复现用例
预期输出
实际输出