dcloudio / dcloudio/uni-app

【非常严重】setup 脚本引入未使用的组件,编译不生成对应的组件js脚本,导致无法真机调试

Open
#3,721 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
setup 脚本引入未使用的组件,编译不生成对应的组件js脚本,导致无法真机调试

**复现步骤**
1. git clone https://github.com/yxw007/uniapp_issue.git
2. git checkout ComponentDisplayIssus
3. cd uniapp_issue
4. yarn & yarn dev

**预期结果**
只要引入了对应组件就生成对应组件js脚本

**实际结果**
![1](https://user-images.githubusercontent.com/9338717/179922497-1b3dff3b-7d07-44ae-8038-659e5523c1e6.png)

**导致问题**
![2](https://user-images.githubusercontent.com/9338717/179922885-20ed8970-6e4b-43e6-925e-2da7fc391b1e.png)

**系统信息:**
- 发行平台: 微信小程序
- uni-app版本:3.0.0-alpha-3050120220706002(最新版也一样)

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.