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脚手架官方推荐的 react-NutUI 模板,却无法正常展示 #2794

Open
ChuYang-FE opened this issue Nov 22, 2024 · 2 comments

Comments

@ChuYang-FE
Copy link

ChuYang-FE commented Nov 22, 2024

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

2.7.1

平台

h5, weapp

重现链接

@tarojs/cli 4.0.7:https://www.npmjs.com/package/@tarojs/cli

重现步骤

根据Taro脚手架,选择react-NutUI模板,构建项目成功。如下图:

然后启动项目,pnpm dev:weapp 或者 pnpm dev:h5

re-produce

期望的结果是什么?

正常展示项目及组件。

实际的结果是什么?

  • 微信小程序:组件无法显示,有警告(图一)
  • H5:能显示组件,但报错(图二)

微信小程序:
微信小程序


H5:
H5

环境信息

MacBook Air M3芯片 (macOS 15.1.1)

其他补充信息

No response

@ChuYang-FE ChuYang-FE changed the title 作为脚手架提供的模板都跑不起来! 脚手架提供的 react-NutUI 模板,组件显示异常 Nov 22, 2024
@ChuYang-FE ChuYang-FE changed the title 脚手架提供的 react-NutUI 模板,组件显示异常 作为Taro脚手架官方推荐的 react-NutUI 模板,却无法正常展示 Nov 22, 2024
@1021683053
Copy link

跟你一样

@Me-UserName
Copy link

这里有demo
https://github.com/jdf2e/nutui-demos

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