Skip to content

使用 vant 1.6.7 的 van-picker 报错 #172

@luobogor

Description

@luobogor

package.json

    "@tinajs/mina-entry-webpack-plugin": "1.6.0",
    "@tinajs/mina-loader": "1.10.0",
    "@tinajs/mina-runtime-webpack-plugin": "1.3.7",
    "@tinajs/wxml-loader": "0.3.1-fork.0",
    "@tinajs/wxs-loader": "1.2.12",
    // .....

警告信息

 ./_/_node_modules_/@vant/weapp/lib/picker/index.wxml
./_/_node_modules_/@vant/weapp/lib/picker/index.wxml:include:-1:-1: Included path `../../../../../src/wxml/toolbar.31f03c.wxml` not found from `./_/_node_modules_/@vant/weapp/lib/picker/index.wxml`.

原因:template 相对路径处理错误

路径中的 src 不应该存在,应该这个路径才对

../../../../../../wxml/toolbar.31f03c.wxml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions