在iconfont阿里的矢量图库中下载矢量图后运用在自己的项目时候,发现怎么运行都出现提示找不到相关文件的错误,提示如下图:

使用iconfont出现错误These relative modules were not found: * ./.iconfont.svg?t=1586...解决方法

后来发现在引入的时候是没有对iconfont.css中文件对相关的路径进行更改

没更改之前:

使用iconfont出现错误These relative modules were not found: * ./.iconfont.svg?t=1586...解决方法

根据自己的路径对文件进行更改之后:

使用iconfont出现错误These relative modules were not found: * ./.iconfont.svg?t=1586...解决方法 

希望可以帮助同样踩坑的前端小白们 

 

相关文章: