首页 > 解决方案 > 标签“amp-mustache extension .js script”中的属性“src”设置为无效值?

问题描述

根据弃用警告,目前正在尝试将我的 AMP Mustache 版本从 0.1 升级到 0.2。但是,这样做之后,我们开始收到以下错误:

The attribute 'src' in tag 'amp-mustache extension .js script' is set to the invalid value 'https://cdn.ampproject.org/v0/amp-mustache-0.2.js

以下是我们的确切内容,如果有任何需要更改的地方,请告诉我们:

<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.1.js"></script>

标签: amp-htmlamp-mustache

解决方案


amp-mustache 0.2 版存在一些问题,因此验证器显示错误。现在这是固定的。

见参考


推荐阅读