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

引入图片后报错 #67

Open
DroganC opened this issue Apr 25, 2020 · 1 comment
Open

引入图片后报错 #67

DroganC opened this issue Apr 25, 2020 · 1 comment

Comments

@DroganC
Copy link

DroganC commented Apr 25, 2020

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" />

这个怎么解决啊

@imyelo
Copy link
Member

imyelo commented Apr 26, 2020

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

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

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