4***@qq.com
4***@qq.com
  • 发布:2024-10-17 17:36
  • 更新:2024-10-18 11:22
  • 阅读:98

【报Bug】小红书小程序真机异常

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

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

第三方开发者工具版本号: 4.29

基础库版本号: 3.108.1

项目创建方式: CLI

CLI版本号: "@vue/cli-service": "~5.0.0"

操作步骤:

vue-cli 创建项目

预期结果:

正常预览

实际结果:

数据无渲染

bug描述:

vue-cli创建的vue2项目 编译到小红书 开发工具正常
小红书真机预览 数据不渲染

HB、小红书开发工具、小红书APP都是最新版本

{
"name": "my-project",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "npm run dev:h5",
"build": "npm run build:h5",
"build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build",
"build:custom": "cross-env NODE_ENV=production uniapp-cli custom",
"build:h5": "cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build",
"build:mp-360": "cross-env NODE_ENV=production UNI_PLATFORM=mp-360 vue-cli-service uni-build",
"build:mp-alipay": "cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build",
"build:mp-baidu": "cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build",
"build:mp-jd": "cross-env NODE_ENV=production UNI_PLATFORM=mp-jd vue-cli-service uni-build",
"build:mp-kuaishou": "cross-env NODE_ENV=production UNI_PLATFORM=mp-kuaishou vue-cli-service uni-build",
"build:mp-lark": "cross-env NODE_ENV=production UNI_PLATFORM=mp-lark vue-cli-service uni-build",
"build:mp-qq": "cross-env NODE_ENV=production UNI_PLATFORM=mp-qq vue-cli-service uni-build",
"build:mp-toutiao": "cross-env NODE_ENV=production UNI_PLATFORM=mp-toutiao vue-cli-service uni-build",
"build:mp-weixin": "cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build",
"build:mp-xhs": "cross-env NODE_ENV=production UNI_PLATFORM=mp-xhs vue-cli-service uni-build",
"build:quickapp-native": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-native vue-cli-service uni-build",
"build:quickapp-webview": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-webview vue-cli-service uni-build",
"build:quickapp-webview-huawei": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-webview-huawei vue-cli-service uni-build",
"build:quickapp-webview-union": "cross-env NODE_ENV=production UNI_PLATFORM=quickapp-webview-union vue-cli-service uni-build",
"dev:app-plus": "cross-env NODE_ENV=development UNI_PLATFORM=app-plus vue-cli-service uni-build --watch",
"dev:custom": "cross-env NODE_ENV=development uniapp-cli custom",
"dev:h5": "cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve",
"dev:mp-360": "cross-env NODE_ENV=development UNI_PLATFORM=mp-360 vue-cli-service uni-build --watch",
"dev:mp-alipay": "cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay vue-cli-service uni-build --watch",
"dev:mp-baidu": "cross-env NODE_ENV=development UNI_PLATFORM=mp-baidu vue-cli-service uni-build --watch",
"dev:mp-jd": "cross-env NODE_ENV=development UNI_PLATFORM=mp-jd vue-cli-service uni-build --watch",
"dev:mp-kuaishou": "cross-env NODE_ENV=development UNI_PLATFORM=mp-kuaishou vue-cli-service uni-build --watch",
"dev:mp-lark": "cross-env NODE_ENV=development UNI_PLATFORM=mp-lark vue-cli-service uni-build --watch",
"dev:mp-qq": "cross-env NODE_ENV=development UNI_PLATFORM=mp-qq vue-cli-service uni-build --watch",
"dev:mp-toutiao": "cross-env NODE_ENV=development UNI_PLATFORM=mp-toutiao vue-cli-service uni-build --watch",
"dev:mp-weixin": "cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch",
"dev:mp-xhs": "cross-env NODE_ENV=development UNI_PLATFORM=mp-xhs vue-cli-service uni-build --watch",
"dev:quickapp-native": "cross-env NODE_ENV=development UNI_PLATFORM=quickapp-native vue-cli-service uni-build --watch",
"dev:quickapp-webview": "cross-env NODE_ENV=development UNI_PLATFORM=quickapp-webview vue-cli-service uni-build --watch",
"dev:quickapp-webview-huawei": "cross-env NODE_ENV=development UNI_PLATFORM=quickapp-webview-huawei vue-cli-service uni-build --watch",
"dev:quickapp-webview-union": "cross-env NODE_ENV=development UNI_PLATFORM=quickapp-webview-union vue-cli-service uni-build --watch",
"info": "node node_modules/@dcloudio/vue-cli-plugin-uni/commands/info.js",
"serve:quickapp-native": "node node_modules/@dcloudio/uni-quickapp-native/bin/serve.js",
"test:android": "cross-env UNI_PLATFORM=app-plus UNI_OS_NAME=android jest -i",
"test:h5": "cross-env UNI_PLATFORM=h5 jest -i",
"test:ios": "cross-env UNI_PLATFORM=app-plus UNI_OS_NAME=ios jest -i",
"test:mp-baidu": "cross-env UNI_PLATFORM=mp-baidu jest -i",
"test:mp-weixin": "cross-env UNI_PLATFORM=mp-weixin jest -i"
},
"dependencies": {
"@dcloudio/uni-app": "^2.0.2-4020420240722004",
"@dcloudio/uni-app-plus": "^2.0.2-4020420240722004",
"@dcloudio/uni-h5": "^2.0.2-4020420240722004",
"@dcloudio/uni-i18n": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-360": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-alipay": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-baidu": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-jd": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-kuaishou": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-lark": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-qq": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-toutiao": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-vue": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-weixin": "^2.0.2-4020420240722004",
"@dcloudio/uni-mp-xhs": "^2.0.2-4020420240722004",
"@dcloudio/uni-quickapp-native": "^2.0.2-4020420240722004",
"@dcloudio/uni-quickapp-webview": "^2.0.2-4020420240722004",
"@dcloudio/uni-stacktracey": "^2.0.2-4020420240722004",
"@dcloudio/uni-stat": "^2.0.2-4020420240722004",
"@vue/shared": "^3.0.0",
"core-js": "^3.8.3",
"flyio": "^0.6.2",
"vue": ">= 2.6.14 < 2.7",
"vuex": "^3.2.0"
},
"devDependencies": {
"@dcloudio/types": "^3.3.2",
"@dcloudio/uni-automator": "^2.0.2-4020420240722004",
"@dcloudio/uni-cli-i18n": "^2.0.2-4020420240722004",
"@dcloudio/uni-cli-shared": "^2.0.2-4020420240722004",
"@dcloudio/uni-helper-json": "*",
"@dcloudio/uni-migration": "^2.0.2-4020420240722004",
"@dcloudio/uni-template-compiler": "^2.0.2-4020420240722004",
"@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.2-4020420240722004",
"@dcloudio/vue-cli-plugin-uni": "^2.0.2-4020420240722004",
"@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.2-4020420240722004",
"@dcloudio/webpack-uni-mp-loader": "^2.0.2-4020420240722004",
"@dcloudio/webpack-uni-pages-loader": "^2.0.2-4020420240722004",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"babel-plugin-import": "^1.11.0",
"cross-env": "^7.0.2",
"jest": "^25.4.0",
"postcss-comment": "^2.0.0",
"vue-template-compiler": ">= 2.6.14 < 2.7"
},
"browserslist": [
"Android >= 4.4",
"ios >= 9"
],
"uni-app": {
"scripts": {}
}
}

2024-10-17 17:36 负责人:无 分享
已邀请:
DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

感谢反馈,这个问题昨天有个类似的,你切换下基础库版本为最新或者次新,再试一下基础的 uni-app 空项目试一下

  • 4***@qq.com (作者)

    uni-app项目是空的 基础库切换最新和次新 也不行

    2024-10-18 11:32

  • DCloud_UNI_OttoJi

    回复 4***@qq.com: 后续我在 https://ask.dcloud.net.cn/question/199880 进行交流,我看是一样的

    2024-10-18 16:02

  • 4***@qq.com (作者)

    回复 DCloud_UNI_OttoJi: 好的

    2024-10-18 16:11

要回复问题请先登录注册