理子
理子
  • 发布:2022-12-28 11:22
  • 更新:2023-03-30 13:51
  • 阅读:275

【报Bug】runtime-only build

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.6.14

手机系统: Android

手机系统版本号: Android 10

手机机型: haikang

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

重新加载复现

预期结果:

无报错

实际结果:

You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build

bug描述:

You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build

2022-12-28 11:22 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

详细描述一下

理子

理子 (作者) - 为了世界和平!

更新到最新版本的hdx就没这个问题了

k***@163.com

k***@163.com

我的就是最新版本的编辑器,真机联调控制台报这个错误,进入到app后会出现tab无法切换的问题,

  • 理子 (作者)

    vue.config.js项目根目录加一下这个试试

    module.exports = {

    // runtimeCompiler: true,

    configureWebpack: {

    resolve: {

    alias: {

    vue$: "vue/dist/vue.esm.js",

    },

    },

    },

    };

    2023-03-30 22:42

  • 理子 (作者)

    我是开发的APP;升级完hbuildx版本莫名奇怪的就好了;我现在用的版本3.6.18.20230117是正常的,下次版本还没试过;要不你试试把环境重装一下

    2023-03-30 22:45

要回复问题请先登录注册