tinajs/tina

引入图片后报错

Opened this issue · 1 comments

Module build failed (from ../node_modules/@tinajs/mina-loader/lib/index.js):
ModuleBuildError: Module build failed (from ../node_modules/@tinajs/wxml-loader/lib/index.js):
evalmachine.:1
export default webpack_public_path + "assets/driver.png";

引入图片报错了
<image src="../../images/driver.png" />

这个怎么解决啊

确定引用的路径正确吗? 可以把文件目录的结构发一下

e.g.:

$ tree src
.
├── app.mina
├── components
│   └── author.mina
├── images
│   └── driver.png
├── pages
│   └── home.mina
├── store
│   ├── index.js
│   ├── modules
│   │   └── items.js
│   └── types.js
└── templates
    └── test.wxml

6 directories, 8 files