question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting an error while using Amp Html Validator package

See original GitHub issue

Description

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:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mszylkowskicommented, Aug 11, 2022

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.

1reaction
mszylkowskicommented, Aug 11, 2022

That is interesting, I was on Chrome 103 (working) and just updated to Chrome 104 and it stopped working…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found