Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[BUG] build项目后自定义组件没有随之打包导致组件缺失 #905

Closed
q759410559 opened this issue May 7, 2020 · 4 comments · Fixed by #907
Closed

[BUG] build项目后自定义组件没有随之打包导致组件缺失 #905

q759410559 opened this issue May 7, 2020 · 4 comments · Fixed by #907
Labels
bug Something isn't working

Comments

@q759410559
Copy link

q759410559 commented May 7, 2020

bug 描述
使用dev运行时正常,build打包后 NativeCard 自定义组件不显示。

复现步骤

import React from 'react';
import { View } from 'remax/wechat';
import VantIcon from 'vant-weapp/dist/icon';

export default () => (
  <View>
 <VantIcon name="close" />
  </View>
);
使用项目中的自定义组件:

import React from 'react';
import { View } from 'remax/wechat';
import NativeCard from './native-card'; // native-card 是一个原生自定义组件

export default () => (
   <View>
     <NativeCard />
   </View>
);

版本信息:

  • remax 版本: [e.g. 2.0.2]
  • 手机型号 [e.g. iPhone X]
  • 小程序端 [e.g. 微信小程序]
  • 小程序版本[e.g. 2.3.0]
  • 开发环境 [e.g. mac OS]
@q759410559 q759410559 added the bug Something isn't working label May 7, 2020
@Darmody
Copy link
Contributor

Darmody commented May 7, 2020

我试了一下可以的额,能提供一个复现 demo 吗

@q759410559
Copy link
Author

@q759410559
Copy link
Author

image
dev 运行时

image
build 打包

1.x时是没问题的,今天刚升级2.0.2就不行了

@Darmody
Copy link
Contributor

Darmody commented May 8, 2020

@q759410559 感谢提供复现 demo,问题已修复

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants