vant weapp引用notify组件不成功,一直显示improt路径有问题?

发布于 6 年前作者 gang346123 次浏览最后编辑 6 年前来自 ask

不知为什么,现在从vantweapp上npm下载构建下来的框架包已经不能用官方给的"usingComponents": {

"van-notify": "@vant/weapp/notify/index"

}这种引入代码来引入了,现在都是我自己找的引入路径

    "van-steps": "../../dist/steps/index"

然而在我应用notify的时候却疯狂报错没找到模块不知这是为什么

2 回复
guiying64
guiying641 楼5 年前

路径以 / 开头 检查路径

lifu
lifu2 楼4 年前

现在又报这样的错误信息