文本,vitepress,Failed to resolve import “Users}17AppDataRoamingTyporaypora-user-imagesimage

简介: 文本,vitepress,Failed to resolve import “Users}17AppDataRoamingTyporaypora-user-imagesimage

参考文章:

VitePress-09-文档中引入静态资源-图片-相对路径的方式_vitepress 怎么引入图片

今天在敲代码的时候的时候,遇到了一个bug: 这个bug,该如何解决?

无法从“docs/markdown-examples.md“解析导入“Users } 17 appdataroamingtyporaypora-user-imagesimage-20240314110943272 . png“。文件存在吗?

这里解决问题的方法是在插入图片时,一定要保证图片的格式是这样的:

![xxxx](路径),这里xxxx一定要跟你本地文件夹中的图片名字相同,路径可以填写相对路径,同时如果图片放在vitepress的文件内,也无法出现图片

保证图片在项目的图片文件夹吧!!!

这样图片就正常显示了:


相关文章
|
9天前
项目中使用antd中的upload组件file对象到底是info.file还是info.file.originFileObj_坑
在Ant Design的Upload组件中,`onChange`事件处理函数接收一个对象参数,其中`file`字段在不同情况下可能是一个File对象或包含`originFileObj`属性的对象。为了兼容,可以使用`info.file.originFileObj ? info.file.originFileObj : info.file`来确保获取到原始的File对象。官方建议这种写法,并将在未来的大版本中统一返回包含`originFileObj`属性的对象。
25 1
项目中使用antd中的upload组件file对象到底是info.file还是info.file.originFileObj_坑
|
运维 JavaScript jenkins
uni-app命令行构建Module parse failed:Unexpected token错误处理
分享一次打包环境升级导致的jenkins部署流程失败问题的解决过程。
1586 0
|
3月前
|
JavaScript
F12控制台打印报Syntax Error: D:\project\xxxx\xxxx\若依系统\RuoYi-Vue-master\ruoyi-ui\src\views,console打印没加““
F12控制台打印报Syntax Error: D:\project\xxxx\xxxx\若依系统\RuoYi-Vue-master\ruoyi-ui\src\views,console打印没加““
|
5月前
|
IDE 开发工具 Android开发
Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo
Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo
63 0
|
5月前
|
Android开发
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
35 1
|
5月前
|
Java Maven
完美解决 Could not resolve placeholder ‘jeecg.file-view-domain‘ in value “${jeecg.file-view-domain}
完美解决 Could not resolve placeholder ‘jeecg.file-view-domain‘ in value “${jeecg.file-view-domain}
84 0
|
JavaScript
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
|
缓存 JavaScript Nacos
Vue 报错整理:npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\jinchuang\AppData...
我是在npm install的时候出现的这个问题,开始是安装不上,提示升级npm,然后我按要求升级npm i npm 依然报错 解决方法:1. 删除本地node_modules 依赖包2. 执行 npm cache clean --force 清理缓存3. npm install。
330 0
|
Web App开发 Python Windows
selenium.common.exceptions.WebDriverException: Message: session not created(已解决)
selenium.common.exceptions.WebDriverException: Message: session not created(已解决)
125 0
|
Python
安装docx后,import提示Import Error: No module named ‘exceptions‘
安装docx后,import提示Import Error: No module named ‘exceptions‘
379 0