tina icon indicating copy to clipboard operation
tina copied to clipboard

引入图片后报错

Open DroganC opened this issue 6 years ago • 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" />

这个怎么解决啊

DroganC avatar Apr 25 '20 09:04 DroganC

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

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

imyelo avatar Apr 26 '20 03:04 imyelo