jdf2e / nutui

京东风格的移动端 Vue 组件库,支持多端小程序(A Vue.js UI Toolkit for Mobile Web)
https://nutui.jd.com
MIT License
6.17k stars 835 forks source link

taro4.0.4 Vue3+TS+Vite小程序无法预览 #3190

Open Thank4 opened 2 months ago

Thank4 commented 2 months ago

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.12

平台

weapp

重现链接

重现步骤

运行执行小程序不显示

QQ_1725960846249

期望的结果是什么?

正确运行

实际的结果是什么?

不能正确运行

环境信息

👽 Taro v4.0.4

(node:84112) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

Taro CLI 4.0.4 environment info: System: OS: macOS 14.2 Shell: 5.9 - /bin/zsh Binaries: Node: 21.5.0 - ~/.nvm/versions/node/v21.5.0/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.8.0 - ~/.nvm/versions/node/v21.5.0/bin/npm npmPackages: @tarojs/cli: 4.0.4 => 4.0.4 @tarojs/components: 4.0.4 => 4.0.4 @tarojs/helper: 4.0.4 => 4.0.4 @tarojs/plugin-framework-vue3: 4.0.4 => 4.0.4 @tarojs/plugin-html: 4.0.4 => 4.0.4 @tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4 @tarojs/plugin-platform-h5: 4.0.4 => 4.0.4 @tarojs/plugin-platform-harmony-hybrid: 4.0.4 => 4.0.4 @tarojs/plugin-platform-jd: 4.0.4 => 4.0.4 @tarojs/plugin-platform-qq: 4.0.4 => 4.0.4 @tarojs/plugin-platform-swan: 4.0.4 => 4.0.4 @tarojs/plugin-platform-tt: 4.0.4 => 4.0.4 @tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4 @tarojs/runtime: 4.0.4 => 4.0.4 @tarojs/shared: 4.0.4 => 4.0.4 @tarojs/taro: 4.0.4 => 4.0.4 @tarojs/vite-runner: 4.0.4 => 4.0.4 babel-preset-taro: 4.0.4 => 4.0.4 eslint-config-taro: 4.0.4 => 4.0.4

其他补充信息

{ "name": "yirijian-miniprogram", "version": "1.0.0", "private": true, "description": "一日检", "templateInfo": { "name": "default", "typescript": true, "css": "Sass", "framework": "Vue3" }, "scripts": { "build:weapp": "taro build --type weapp", "build:swan": "taro build --type swan", "build:alipay": "taro build --type alipay", "build:tt": "taro build --type tt", "build:h5": "taro build --type h5", "build:rn": "taro build --type rn", "build:qq": "taro build --type qq", "build:jd": "taro build --type jd", "build:harmony-hybrid": "taro build --type harmony-hybrid", "dev:weapp": "npm run build:weapp -- --watch", "dev:swan": "npm run build:swan -- --watch", "dev:alipay": "npm run build:alipay -- --watch", "dev:tt": "npm run build:tt -- --watch", "dev:h5": "npm run build:h5 -- --watch", "dev:rn": "npm run build:rn -- --watch", "dev:qq": "npm run build:qq -- --watch", "dev:jd": "npm run build:jd -- --watch", "dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch" }, "browserslist": [ "defaults and fully supports es6-module", "maintained node versions" ], "author": "", "dependencies": { "@babel/runtime": "^7.24.4", "@nutui/nutui-taro": "^4.3.12", "@tarojs/components": "4.0.4", "@tarojs/helper": "4.0.4", "@tarojs/plugin-framework-vue3": "4.0.4", "@tarojs/plugin-html": "4.0.4", "@tarojs/plugin-platform-alipay": "4.0.4", "@tarojs/plugin-platform-h5": "4.0.4", "@tarojs/plugin-platform-harmony-hybrid": "4.0.4", "@tarojs/plugin-platform-jd": "4.0.4", "@tarojs/plugin-platform-qq": "4.0.4", "@tarojs/plugin-platform-swan": "4.0.4", "@tarojs/plugin-platform-tt": "4.0.4", "@tarojs/plugin-platform-weapp": "4.0.4", "@tarojs/runtime": "4.0.4", "@tarojs/shared": "4.0.4", "@tarojs/taro": "4.0.4", "vue": "^3.0.0" }, "devDependencies": { "@babel/core": "^7.24.4", "@babel/plugin-proposal-class-properties": "7.14.5", "@nutui/auto-import-resolver": "^1.0.0", "@tarojs/cli": "4.0.4", "@tarojs/vite-runner": "4.0.4", "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", "babel-preset-taro": "4.0.4", "eslint": "^8.57.0", "eslint-config-taro": "4.0.4", "eslint-plugin-vue": "^9.17.0", "postcss": "^8.4.38", "sass": "^1.75.0", "stylelint": "^16.4.0", "terser": "^5.30.4", "typescript": "^5.4.5", "unplugin-vue-components": "^0.27.4", "vite": "^4.2.0" } }

renbooc commented 2 months ago

请问是否解决?同样的问题发生了

Thank4 commented 2 months ago

请问是否解决?同样的问题发生了

没有,看最近的issue都没有回复,感觉准备放弃了

dyingChinese commented 2 months ago

我也遇到了相同的问题 i also find the same problem.

zmqcherish commented 2 months ago

+1

vcc0827 commented 1 month ago

同样遇到这个问题,请问你是怎么配置config/index.ts文件的呢? nutui指南中有提到两种使用的方式,第二种按需使用的有试过吗?

wiiyee commented 1 month ago

h5 没有问题,taro init 选模版库微信小程序各种问题....

PingChou commented 1 month ago

+1

qq1037305420 commented 3 weeks ago

h5 没有问题,taro init 选模版库微信小程序各种问题....

你确定 h5 中 view 被编译成 成 taro-view-core 了吗

Star945 commented 2 weeks ago

绷不住了~我已经折腾一天了,回3.6.5去了,vite版本编译不成功,webpack版本toast不显示内容

GQ-Jesse commented 2 weeks ago

我也遇到了,有知道怎么解决吗?

Star945 commented 2 weeks ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

obj-Rui commented 6 days ago

到现在还没解决吗,我今天也遇到了

wmy94827 commented 4 days ago

+1 +1 按照文档,完全没法运行

wangjieke-jk commented 1 day ago

很多组件都显示不出来,h5可以显示,小程序就不行。webpack也一样,比如InfiniteLoading 滚动加载,vite构建更不行