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.

Links validation failures after updating to 2.0.0-alpha.61

See original GitHub issue

šŸ› Bug Report

We are in the process of migrating Litho UI Framework website to Docusaurus v2. After updating Docusaurus setup to alpha.61 we started getting weird behaviour of not seeing the content of static/javadoc folder on the website and prod build started to fail on links validation step.

Have you read the Contributing Guidelines on issues?

Yep

To Reproduce

Validation errors:

  1. Check out this PR: https://github.com/facebook/litho/pull/692
  2. Go to website folder and run yarn run build for links validation to kick in
  3. See lots of validation errors for /javadoc/... links

Navigation failures:

  1. Check out the same PR: https://github.com/facebook/litho/pull/692
  2. Go to website folder and run yarn run start to access website locally
  3. Open website URL and click to ā€œAPIā€ item in the right part of the header
  4. You’ll see 404 error for the link http://localhost:3000/javadoc/
  5. Update the page with Cmd+R/Ctrl+R and you’ll see the correct API Javadocs page

Expected behavior

No validation errors on build and /javadocs/... links navigation working without reloads.

Actual Behavior

Validation errors:

Console log screenshot Console log

Navigation failures: Video in Dropbox

Your Environment

  • Docusaurus version used: 2.0.0-alpha.61
  • Environment: Chrome 84.0.4147.125 (Official Build) (64-bit), Node.js 14.6.0):
  • Operating system: MacOS 10.15.5

Reproducible Demo

Steps are present in ā€œTo Reproduceā€ section.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
slorbercommented, Aug 18, 2020

Hi,

The escape hatch is mostly for sites that use a baseurl like /myWebsiteBaseUrl and yet they want to link to some page that is ā€œoutsideā€ of the baseurl. If the content is in /static/javadoc, we should prevent the broken link checker to report /javadoc as a broken link. As this system is new, I didn’t think about that case 😃 And yes images go through a different path, using webpack’s file-loader system.

So, I’d that we’ll fix this soon, in the meantime you can ignore the broken link errors (or at least not throw) and re-enable later.

In the message above we talk about validation solely. Does that escape-hatch also help with link not being loaded in the browser at first and succeeding only after additional reload?

I have no idea what you are talking about 🤪

0reactions
colriotcommented, Aug 21, 2020

I’ve answered in https://github.com/facebook/docusaurus/issues/3309#issuecomment-678249433, to keep navigation discussion in its own issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases - EPUBCheck - W3C
update HTML schemas from the HTML Checker (22fa3b1), closes #1111 ... fail gracefully when running on a non-EPUB file (#1134) (2083f05), closes #1050Ā ......
Read more >
URL validation rejects existing valid content after upgrade to 7 ...
When I'm editing the node, the url validation failed. It reports: "The value content/dates-des-sessions provided for A lire aussi is not a validĀ ......
Read more >
2.0.0-alpha.73 - Docusaurus
#4501 fix(v2): fail-safe usage of browser storage (localStorage/sessionStorage) when access is denied (@jknoxville).
Read more >
Release Notes — Security Onion 2.3 documentation
Also suppress error output for when so-elastalert container is missing. ... FIX: ACNG sometimes returns 503 errors when updating Ubuntu through the managerĀ ......
Read more >
Change log for 4.9.53
Bug 2103982: Fix build on ARM after rebase #204 ... Cluster-autoscaler-FAQ: Updating link addresses for MinAvailable andĀ ...
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