按GitHub指引引入AMP Story库时返回404 Not Found问题咨询
Fixing the 404 Error for AMP Story Script
Hey there! Let's get that AMP Story script 404 issue sorted out quickly.
The root of the problem is that the URL you're trying to use (https://cdn.ampproject.org/v0/amp-story-1.0.js) doesn't exist. AMP's component CDN follows a consistent naming rule: component files don't include version numbers in their filenames under the v0 directory.
Correct Script Import
Replace your current script tag with this valid one:
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story.js"></script>
Quick Check
Once you update the URL, double-check that your page meets basic AMP requirements (like having the <!doctype html> declaration, <html amp> tag, and the required AMP boilerplate code) to ensure the AMP Story component loads and functions as expected.
内容的提问来源于stack exchange,提问作者Victor Tsang
相关产品推荐
相关产品推荐

