Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 资源解释为字体,但使用MIME类型text/html进行传输:";http://localhost:3000/fonts/glyphicons-普通半身人;_Twitter Bootstrap_Meteor_Twitter Bootstrap 3_Meteorite - Fatal编程技术网

Twitter bootstrap 资源解释为字体,但使用MIME类型text/html进行传输:";http://localhost:3000/fonts/glyphicons-普通半身人;

Twitter bootstrap 资源解释为字体,但使用MIME类型text/html进行传输:";http://localhost:3000/fonts/glyphicons-普通半身人;,twitter-bootstrap,meteor,twitter-bootstrap-3,meteorite,Twitter Bootstrap,Meteor,Twitter Bootstrap 3,Meteorite,iam使用Meteor Framwork(预览版0.7.1.2),我已经使用mrt安装了bootstrap-3,一切正常,但是从chrome iam的控制台收到以下警告: Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.woff" Resource interpreted as Font

iam使用Meteor Framwork(预览版0.7.1.2),我已经使用mrt安装了bootstrap-3,一切正常,但是从chrome iam的控制台收到以下警告:

Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.woff"
Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.ttf".
Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.svg".
特别是在开发控制台的时候,非常烦人

有人对此有办法吗?
谢谢

您的字体需要在Meteor应用程序的公用文件夹中提供。为此,您可以在公用文件夹中创建一个符号链接,指向引导安装中字体所在的位置

编辑: 我下载了您正在使用的软件包,并检查了字体文件夹的路径,使用下面的代码创建指向字体的符号链接注意这必须在项目的公共目录中运行

ln -s ../packages/bootstrap-3/fonts ./

当您单击或任何其他链接时,浏览器会下载吗?我已经编辑了我的答案,以包含bootstrap-3软件包中的路径,因此您应该可以开始了。你能确认它是mangasocial找到的软件包吗?你或多或少是对的,但你还不知道这个问题使用的是哪个软件包,因此你的路径可能不正确。您应该与问题作者沟通,以获取该信息并将其反映在您的答案中。@Serkandurosay您是对的,我已经对该问题进行了编辑和评论,以确认我得到了正确的数据包。谢谢我只是简单地将我的字体文件夹从我购买的主题移到了公共文件夹中——它就像一个符咒。谢谢你提供的信息。我想您的符号链接也可以工作,而不是有两个不同的文件。