[HBuilder] 23:05:16.186 [vite]: Rollup failed to resolve import "vue/server-renderer" from "../../../../E:/work/uniapp/ssr-demo/pages/index/index.vue".
[HBuilder] 23:05:16.186 This is most likely unintended because it can break your application at runtime.
[HBuilder] 23:05:16.189 If you do want to externalize this module explicitly add it to
[HBuilder] 23:05:16.189 build.rollupOptions.external
[HBuilder] 23:05:16.200 Build failed with errors.
[HBuilder] 23:05:16.251 项目 'ssr-demo' 发布h5失败.
- 发布:2022-12-02 23:12
- 更新:2022-12-09 17:58
- 阅读:263
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 3.6.10
操作步骤:
预期结果:
发布成功
发布成功
实际结果:
[HBuilder] 23:05:16.186 [vite]: Rollup failed to resolve import "vue/server-renderer" from "../../../../E:/work/uniapp/ssr-demo/pages/index/index.vue".
[HBuilder] 23:05:16.186 This is most likely unintended because it can break your application at runtime.
[HBuilder] 23:05:16.189 If you do want to externalize this module explicitly add it to
[HBuilder] 23:05:16.189 build.rollupOptions.external
[HBuilder] 23:05:16.200 Build failed with errors.
[HBuilder] 23:05:16.251 项目 'ssr-demo' 发布h5失败.
[HBuilder] 23:05:16.186 [vite]: Rollup failed to resolve import "vue/server-renderer" from "../../../../E:/work/uniapp/ssr-demo/pages/index/index.vue".
[HBuilder] 23:05:16.186 This is most likely unintended because it can break your application at runtime.
[HBuilder] 23:05:16.189 If you do want to externalize this module explicitly add it to
[HBuilder] 23:05:16.189 build.rollupOptions.external
[HBuilder] 23:05:16.200 Build failed with errors.
[HBuilder] 23:05:16.251 项目 'ssr-demo' 发布h5失败.
bug描述:
ssr打包不成功
文档也看的云里雾里 本地调试首页有SEO内容了 内容页如何获取参数 内容页如何有seo信息 能否把news.dcloud.io 的代码开源一下 学习一下子页的写法
7***@qq.com (作者)
发一下uni-ssr的示例项目的开源地址吧 我没有找到ssr项目的开源地址 而且按文档并没有运行成功, 比如子页如何获取参数 项目如何配置上线, 最简单的一个列表页和一个内容页没有成功,先分享一个uni-ssr的示例项目的开源地址吧 新升级的3.6.12可以打包了 但不知道如何部署和配置
2022-12-09 17:57