Deprecation warnings in version 21.7.1 #1805
-
DescriptionHi! I recently updated our JSS Next.js application to version 21.7.1, and with that an update to Next.js 14 was required as stated in the release notes of 21.7.0. However that update logs a lot of deprecation warnings in the output when running the Next.js development sever and tests with Jest such as
They seem to originate from components in the JSS package. I can silence the warnings during Jest execution with the It seems as any dependency that we update, that has a peer-dependency to React, activates the deprecation warnings. Properly because React 18.3.1 marks a few thing as deprecated. In the release notes of version 22.0.0, this pull request is merged that claims to fix these warnings. We are currently not able to update to 22.0.0 since we do not have the time and resources to update our on-premise installation of Sitecore XP from 10.3 to 10.4. I can replicate these warnings in a fresh JSS 21.7.1 application created by the CLI and adding a page route with the following content
Any ideas on how I can hide these specific deprecation warnings? Additional informationMy package.json file if that is any help:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Adamduehansen |
Beta Was this translation helpful? Give feedback.
Hi @Adamduehansen
I understand your situation and that you cannot upgrade at the moment.
Since this issue is annoying but not critical, publishing a hotfix for v21 is not at the top of our priority list for now :/ ...