-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
amphtml-validator returns this.sandbox.amp.validator.categorizeError is not a function #25188
Comments
same problem, is there a solution? |
it seems we need to upgrade to the latest version 7d7b8d6#diff-5185ebf96af6c84dd9d0f25168752664L279 |
Tried on 1.0.26 which is the latest and was released 3 days ago, same error. |
yeah, I still see the old code in |
Man this is really putting me in a bad position, how the f*ck did they manage to do this.... |
I'm using version |
It's broken because |
all |
Oh I am going mental over this... [censored..] my apologies. |
@jackbillstrom, that's not productive at all. You can still remove the line locally for Bugs will happen from time to time. You don't have to be a script kiddie on an internship to cause them, even if you work at Google. |
@kevva , Can you give more details as for what changes can be done locally in node_modules until (or if) they fix this? |
@kevva Productive or not, I couldn't understand on to get passed this bug. Of course I then come with some hard-on questions. Thus, as you say, bugs always occur but this was just so annoying. Thanks. 😈 |
@liorbashan, in |
@kevva , Thank you :) |
What can be done towards the emergence of the amp cache wedding videos for some videos does not work properly at the scales amp. |
that is unfortunate. there really should be a way to run validation while only depending on local code. filed #25200 to track this. |
/cc @Gregable @ampproject/wg-caching |
@jackbillstrom your comments above are violating AMP's Code of Conduct which aim to promote civil discourse on all AMP channels. Please ensure that all future comments follow the Code of Conduct. We understand that the current situation is upsetting, however, personally attacking any of our other members is not pushing discussion forward. |
Validator error categories and all the references to amp.validator.categorizeError were removed #25134 validator rollup. Publishing a updated amphtml-validator npm package now. |
amphtml-validator version 1.0.27 published. Please update the amphtml-validator dependencies to use latest version. In future, we will make sure any changes in validator.js do not break nodejs package and/or get caught during the release. Please reopen the issue if you still see the error, or I missed something. PS: This is my first npm publish. |
1.0.27 requires node 12, so i am still blocked. what's the context on the minimum node version requirement? |
Fix for that is pending in #25208. |
Fix published as https://www.npmjs.com/package/amphtml-validator version 1.0.28. |
any plans to support node 8.x? Next.js use it vercel/next.js#9172 |
Maybe I'm not so much smart.. but even after updating the package to 1.0.28 I'm still facing the same error... I use it as dependency of next.js amp pages. I went to line 279 as said before and found that code, is it the last version?
|
@rodolphonetto Don't worry! This is still broken despite this issue being closed. We're trying to work with the AMP team on a resolution that doesn't leave all users broken! |
Ahh ok! I thought version 1.0.28 solved all problems, Where can I watch to be updated about that problem? |
@rodolphonetto @Timer Sorry you're still experiencing issues around this change. We're working on addressing them. Could you verify that this is happening with |
@honeybadgerdontcare |
There is no problem, I can wait :) Yes, I'm still facing the same issue with version 1.0.28, my node version is 12.10.0 |
All interfaces should be returning errors/warnings now. This includes previous versions of NPM (sync back to 1.0.23 if you have node compatibility issues). Note that all errors are categorized as UNKNOWN. The error category system has retired. For some history, this system categorized all errors into an set of 10 broad enums like "GENERIC" and "AUTHOR_STYLESHEET_PROBLEM". Note that category is distinct from severity, which is of the set ERROR/WARNING. Severity is still present and unchanged. There was little if any remaining usage of these categories. Google Search console was one of the remaining users, but no longer consumes categories. Any older version of the validator that still consumes categories will now categorize all errors as UNKNOWN. We'll follow up with fixes to those interfaces to ensure they remove references to categories as well. |
For browser interfaces you may need to force reload https://cdn.ampproject.org/v0/validator.js |
Thank you for the detailed explanation, distinction between severity and category, and the fix @Gregable et al. FWIW Next.js CI re-enabled the AMP tests after this began passing again. x-ref vercel/next.js#9162 |
All working fine right now, thank you so much :) |
FYI as a follow up, the release process for This step would not have caught the separate issue with removing support for older Node versions, but that was an explicit decision rather than an unintended bug, which isn't really what tests are there to catch. The consequences of that decision were not fully understood, but I think we understand them better now. |
##What's the issue?
Running amphtml-validator via command line returns
How do we reproduce the issue?
amphtml-validator file.html #this file is attached as file.zip in this ticket.
file.html.zip
returns:
this.sandbox.amp.validator.categorizeError is not a function
What browsers are affected?
amphtml-validator via command line is affected
The text was updated successfully, but these errors were encountered: