Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

引入weex-ui组件,执行weex debug访问不了页面? #32

Closed
chzjscut opened this issue Oct 20, 2017 · 2 comments
Closed

引入weex-ui组件,执行weex debug访问不了页面? #32

chzjscut opened this issue Oct 20, 2017 · 2 comments

Comments

@chzjscut
Copy link

在页面中引入weex-ui组件,weex debug调试时发现页面空白,但是去掉weex-ui组件就可以正常显示;我把weex-ui的组件(比如weex-ui/packages/wxc-button文件夹)放入自己项目中,然后在页面中引入,调试就可以正常显示。

@tw93
Copy link
Member

tw93 commented Oct 21, 2017

Update weex-ui and weex-toolkit to latest

npm i weex-ui@0.2.0 -S
npm i weex-toolkit@latest -D

Then add a babel exclude in week and web module config in weex.config.js

exclude: /node_modules(?!\/.*(weex).*)/

In here:

{
        test: /\.js$/,
        use: [{
          loader: 'babel-loader'
        }],
        exclude: /node_modules(?!\/.*(weex).*)/
}

image

It is same like the issues https://github.com/alibaba/weex-ui/issues/30,I close this one

@tw93
Copy link
Member

tw93 commented Oct 22, 2017

Please follow the same issule here #30

@tw93 tw93 closed this as completed Oct 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants