神缘叔
神缘叔
  • 发布:2021-09-28 10:51
  • 更新:2021-09-28 11:22
  • 阅读:456

【报Bug】3.2.9app无限编译反复运行

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

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

HBuilderX版本号: 3.2.9

示例代码:

项目会无限编译

操作步骤:

项目会无限编译

预期结果:

项目会无限编译

实际结果:

项目会无限编译

bug描述:

10:47:59.309 WARNING: Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:47:59.314 (Emitted value instead of an instance of Error) <n-cell v-for="user in items">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
10:47:59.318 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:47:59.323 (Emitted value instead of an instance of Error) <yylp-cell v-for="radio in pitem.now_field.options">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
10:47:59.329  DONE  Build complete. Watching for changes...  
10:47:59.333 项目 'les_chat' 编译成功。  
10:47:59.339 正在热重载...  
10:47:59.528 生成路由映射表-ok  
10:48:00.705 WARNING: Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:48:00.706 (Emitted value instead of an instance of Error) <n-cell v-for="user in items">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
10:48:00.712 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:48:00.718 (Emitted value instead of an instance of Error) <yylp-cell v-for="radio in pitem.now_field.options">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
10:48:00.726  DONE  Build complete. Watching for changes...  
10:48:00.731 项目 'les_chat' 编译成功。  
10:48:00.732 正在热重载...  
10:48:00.739 生成路由映射表-ok  
10:48:01.389 WARNING: Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:48:01.390 (Emitted value instead of an instance of Error) <n-cell v-for="user in items">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
10:48:01.397 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
10:48:01.416 已停止运行...
2021-09-28 10:51 负责人:无 分享
已邀请:
神缘叔

神缘叔 (作者)


//development开发,production:正式  
if (process.env.NODE_ENV == 'development') {  
    const fs = require('fs');  
    let routesMap_nameMap = {};  
    let routesMap_pathMap = {};  
    modules.forEach((item, index) => {  
        routesMap_nameMap[item.name] = item;  
        routesMap_pathMap[item.path] = item;  
    });   
    //生成映射关系表  
    fs.writeFileSync(process.env.UNI_INPUT_DIR + '/.dnvue/common/pageMap.js',  
        'module.exports = {nameMap:' +  
        JSON.stringify(routesMap_nameMap) + ',pathMap:' +  
        JSON.stringify(routesMap_pathMap) + '};');  
    console.log("生成路由映射表-ok");  
}

这个版本这段代码会无线热重载

该问题目前已经被锁定, 无法添加新回复