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

现在要在wepy导入vant-weapp组件只能这样吗? #2

Open
neozhu opened this issue Feb 15, 2020 · 1 comment
Open

现在要在wepy导入vant-weapp组件只能这样吗? #2

neozhu opened this issue Feb 15, 2020 · 1 comment

Comments

@neozhu
Copy link

neozhu commented Feb 15, 2020

我用npm install
在app.wpy添加

<config>
{
    pages: [
      'pages/index'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    "usingComponents": {
      "van-button": "module:@vant/weapp/dist/button",
      "van-rate": "module:@vant/weapp/dist/rate"

  },
}
</config>

编译是成功了,但预览报错

> jsEnginScriptError
Component is not found in path "$vendor/@vant/weapp/dist/rate/index" (using by "pages/index");onAppRoute
Error: Component is not found in path "$vendor/@vant/weapp/dist/rate/index" (using by "pages/index")

还有其它简单的方法吗
@ldsenow
Copy link

ldsenow commented Apr 2, 2020

目前wepy 2.0还没发正式版本 好像很多bugs真心直接转用原生开发了 好多坑 不想一直踩

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

2 participants