Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An AMP component 'amp-install-serviceworker' is using an invalid version. Use a valid version of this AMP component. #176

Open
rpong opened this issue Jan 13, 2022 · 1 comment

Comments

@rpong
Copy link
Contributor

rpong commented Jan 13, 2022

We recently received the following issues detected by Google Search Console

1.) An AMP component 'amp-install-serviceworker' is using an invalid version. Use a valid version of this AMP component.

2.) An AMP component 'amp-form' is using an invalid version. Use a valid version of this AMP component.

Upon checking, we have the following Console errors in our AMP Pages:

Failed to load resource: the server responded with a status of 404 ()
https://cdn.ampproject.org/v0/amp-form-undefined.mjs

Failed to load resource: the server responded with a status of 404 ()
https://cdn.ampproject.org/v0/amp-install-serviceworker-undefined.mjs

The "undefined" is supposed to be a version.

Upon further digging, there are recent changes to the @ampproject/toolbox-optimizer package that might be related to the issue.

@rpong
Copy link
Contributor Author

rpong commented Jan 13, 2022

@tomoyukikashiro , pinning the @ampproject/toolbox-optimizer version to 2.3.0 seems to fix the issue for us.

PR: #177

PS: I tried 2.8.6 initially which was released few hours ago, but we got the following error/notice in the backend with that version:

AMP Optimizer AutoExtensionImporter ERROR Missing validation rules, cannot auto import extensions

so it seems 2.3.0 is the best fit for now. There seems to be a need to update how html2amp use @ampproject/toolbox-optimizer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant