Getting an error while using Amp Html Validator package
See original GitHub issueDescription
Facing issue with amphtml-validator v1.0.35 . While using validateString for validating AMP email it is throwing an error. Few months back this was working fine. Getting below error message. Anyone aware about any recent major change with the package dependency or about the issue which I am getting?
Reproduction Steps
Issue is replicated here: https://codesandbox.io/s/happy-cannon-kdrbxt?file=/src/App.js
Relevant Logs
{
"message": "Assertion failed: WebAssembly is uninitialized"
}
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
AMP validation errors
This error occurs when you specify a layout for the AMP tag, and the layout contains a disallowed attribute. Disallowed attributes for layout...
Read more >AMP HTML validator | webhint documentation
AMP HTML is a way to build web pages that render with reliable and fast performance. It is our attempt at fixing what...
Read more >amphtml-validator - Visual Studio Marketplace
This extension makes authoring AMP documents, easy by validating for errors/warnings as you type within Visual Studio Code editor. The PROBLEMS ...
Read more >Fix error messages with Uploaded ads - Google Ads Help
When uploading creatives in Google Ads, you may receive an error message. In most situations, the problem can be fixed by altering your...
Read more >AMP Validator - Test AMP pages
You can confirm AMP HTML documents by utilizing the AMP HTML validator command line tool. Starting: 1 - Make sure you have Node.js...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found a way to fix this temporarily:
const instance = await amphtmlValidator.getInstance("https://cdn.ampproject.org/v0/validator.20211101.deprecated.js");
The underlying error comes from a breakage of the API since https://github.com/ampproject/amphtml/issues/36110. I’ll direct this issue towards someone that can fix the validator, and comment on that issue.
That is interesting, I was on Chrome 103 (working) and just updated to Chrome 104 and it stopped working…