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

[v2.alpha.62] subpages are not opening at all after upgrading from alpha.61 to alpha.62 #3367

Closed
MateuszDabrowski opened this issue Aug 30, 2020 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: can't repro This bug is because of some local setup that can't be reproduced.

Comments

@MateuszDabrowski
Copy link

🐛 Bug Report

After updating to alpha.62 I'm able to open main page of my site, but subpages are not loading at all.
After checking Network logging it seems that all files are loading correctly but the content file itself - it returns blank.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Update package.json to alpha.62
  2. npm run start
  3. After fixing [v2.alpha.62] sidebars.json is required after upgrading from alpha.61 to alpha.62 #3366 main page is shown
  4. After clicking any internal link, a blank page is shown

Expected behavior

A page should render as on alpha.61

Actual Behavior

Browser is loading, but the page stays blank

Your Environment

Docusaurus version used: alpha.62
Environment name and version (VSCode Version: 1.48.2, node v14.2.0, Safari 13.1.2, Firefox DevEd 81.0b1):
Operating system and version (desktop or mobile): Macbook Pro on Catalina 10.15.6

Reproducible Demo

https://github.com/MateuszDabrowski/mateuszdabrowski.pl/tree/772446b0b3a84c69d02cf18c290248818501151b + bump the version of docusaurus to alpha.62

@MateuszDabrowski MateuszDabrowski added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Aug 30, 2020
@MateuszDabrowski
Copy link
Author

Additional information:
On initial npm run start I also received error:

The docs plugin option homePageId=docs-and-snippets is deprecated. To make a doc the "home", prefer frontmatter: "slug: /"
The docs plugin option homePageId=ideas is deprecated. To make a doc the "home", prefer frontmatter: "slug: /"

that blocks compilation. Once I deleted the homePageId setting and added slug, the compilation finished.

I'm not able to check whether this fixed the issue or not, due to the above bug.

This, however, shouldn't be the reason for the above bug, as also other pages, that did not have homePageId before, are not loading.

@slorber
Copy link
Collaborator

slorber commented Aug 31, 2020

@MateuszDabrowski I don't see the errors you mention here.

See my PR to your repo with alpha 62 working (dev + prod mode).

MateuszDabrowski/mateuszdabrowski.pl#1

image

I'll fix the sidebars.json issue reported here: #3366

The rest works fine to me

@slorber slorber closed this as completed Aug 31, 2020
@MateuszDabrowski
Copy link
Author

As mentioned here MateuszDabrowski/mateuszdabrowski.pl#1 it seems that the issue with subpages not opening might have been either bad downloads of the files during npm install or non-numbered change in files of the alpha.62 or a problem with mine machine. Today the same steps as yesterday allowed all subpages to load correctly.

@DJM0
Copy link

DJM0 commented Sep 30, 2020

I had the same going from alpha.61 to alpha.64 by editing my package.json and doing an npm install.

No errors from npm start (although I did remove the deprecated homePageId option) and the home page rendered as expected, but docs would show as blank/white pages with many React related errors in the console.

After finding this issue, I found removing both node_modules/ and package-lock.json before npm install fixed the issue.

@Josh-Cena Josh-Cena added closed: can't repro This bug is because of some local setup that can't be reproduced. and removed status: needs triage This issue has not been triaged by maintainers labels Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: can't repro This bug is because of some local setup that can't be reproduced.
Projects
None yet
Development

No branches or pull requests

4 participants