Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro中组件无法正常显示 #2415

Closed
370295005 opened this issue Jul 12, 2023 · 7 comments
Closed

taro中组件无法正常显示 #2415

370295005 opened this issue Jul 12, 2023 · 7 comments

Comments

@370295005
Copy link

NutUI scenes(nutui 场景)

小程序(@nutui/nutui-taro)

NutUI-vue version(nutui-vue 版本)

4.0.12

Vue version(vue 版本)

3.2.40

Operating environment(运行环境)

dev:weapp

Citation method(引用方式)

npm

Node version(node 版本)

16.19.0

Browser and its version(浏览器及其版本)

System and its version(系统及其版本)

Windows10

Taro environmental information(taro 环境信息)

Taro CLI 3.6.8 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 16.19.0 - C:\Program Files\nodejs\node.EXE
npm: 8.19.3 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 3.6.8 => 3.6.8
@tarojs/components: 3.6.8 => 3.6.8
@tarojs/helper: 3.6.8 => 3.6.8
@tarojs/plugin-framework-vue3: 3.6.8 => 3.6.8
@tarojs/plugin-html: 3.6.8 => 3.6.8
@tarojs/plugin-platform-h5: 3.6.8 => 3.6.8
@tarojs/plugin-platform-weapp: 3.6.8 => 3.6.8
@tarojs/runtime: 3.6.8 => 3.6.8
@tarojs/shared: 3.6.8 => 3.6.8
@tarojs/taro: 3.6.8 => 3.6.8
@tarojs/webpack5-runner: 3.6.8 => 3.6.8
babel-preset-taro: 3.6.8 => 3.6.8
eslint-config-taro: 3.6.8 => 3.6.8

Reproduction link(重现链接)

codepen.io

Steps to reproduce(重现步骤)

在微信开发者工具和真机上无法正确显示按钮和输入框

What is expected?(期望的结果是什么?)

组件正常显示

What is actually happening?(实际的结果是什么?)

不显示组件
Template tmpl_0_27 not found.
Template tmpl_0_13 not found.
image

image

Remarks(补充说明)

小概率能正常显示

@eiinu
Copy link
Member

eiinu commented Jul 12, 2023

#2356 (comment)
参考这个

@370295005
Copy link
Author

#2356 (comment) 参考这个
但是我没有开启预加载,目前配置是这样的
compiler: {
type: 'webpack5',
prebundle: { enable: false }
},

@eiinu eiinu added the Need Reproduce 需要提供可复现的代码用于问题排查 label Jul 12, 2023
@github-actions
Copy link

你好 @370295005, 我们需要你提供一个最小重现实例以便于我们帮你排查问题。你可以提供一个基于 Taro NutUI4.0 模板项目的 GitHub 仓库链接(@nutui/nutui-taro),也可以通过 CodeSandbox 创建一个在线实例(@nutui/nutui)。请确保选择准确的版本。

@370295005
Copy link
Author

关闭了cache和预加载后可以正常显示,但是开启cache关闭预加载有时候也不能正常显示
https://github.com/370295005/taro-demo

@eiinu
Copy link
Member

eiinu commented Jul 12, 2023

关闭了cache和预加载后可以正常显示,但是开启cache关闭预加载有时候也不能正常显示 https://github.com/370295005/taro-demo

NervJS/taro#12553
开启 prebundle 或者 cache 就可能出现这种问题,在 Taro 中使用第三方组件库都是这样。需要等 Taro 解决。

@370295005
Copy link
Author

关闭了cache和预加载后可以正常显示,但是开启cache关闭预加载有时候也不能正常显示 https://github.com/370295005/taro-demo

NervJS/taro#12553 开启 prebundle 或者 cache 就可能出现这种问题,在 Taro 中使用第三方组件库都是这样。需要等 Taro 解决。

好的谢谢

@eiinu eiinu removed the Need Reproduce 需要提供可复现的代码用于问题排查 label Jul 12, 2023
@vcc0827
Copy link

vcc0827 commented Oct 29, 2024

使用vite构建的模板也出现了这个问题,现在有地方配置关闭vite的预加载和cache吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants