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

Downgrade to React 17 #80

Merged
merged 2 commits into from
Aug 5, 2022
Merged

Conversation

thornbill
Copy link
Member

@thornbill thornbill commented Aug 5, 2022

Docusaurus has not migrated to React 18 yet. While it doesn't really seem to cause any issues, it does log an error, and it is explicitly not supported for some plugins (specifically the redirect plugin I was looking at).

The lockfile was bumped to the v2 format which should be fine here since we are using node 16.

Also I have no idea why prettier is randomly removing trailing newlines in json files, but it's kind of annoying... It seems VS Code formatting on save is enabled, but is not using prettier and it's formatting removes trailing newlines and makes other changes that do not align with the prettier config.

@thornbill thornbill added dependencies Pull requests that update a dependency file npm labels Aug 5, 2022
Comment on lines +4 to +12
{
"description": "Disable major updates for React",
"matchPackagePrefixes": ["react"],
"matchPackageNames": ["@types/react", "@types/react-helmet", "@types/react-router-dom"],
"matchUpdateTypes": "major",
"enabled": false
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we never want to get React updates from Renovate or just skip React 18? Closing a Renovate update PR just skips a single specific version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe any major updates for React will require support in docusaurus first.

@nielsvanvelzen nielsvanvelzen merged commit 83e58f1 into jellyfin:master Aug 5, 2022
@thornbill thornbill deleted the rollback-react branch August 5, 2022 17:20
tannisroot pushed a commit to tannisroot/jellyfin.org that referenced this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants