Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Ticket(s)
Refs #57
Description
This PR upgrades NextJS to v11. This is in draft for now, as it currently has one open question in regards to how it should handle styles, considering that the previous approach with Next v10 allowed for
scss
imports on a per-page level. NextJS v11 enforces the use of CSS modules, otherwise regularscss
imports can only happen in_app.js
:https://nextjs.org/docs/messages/css-global
Carbon for IBM.com
currently is not designed to handle CSS modules, as it is on Carbon v10. This leaves a gap in how component level styling can be handled without stuffing the base page with all of the necessary styles.Will have to leave in draft for now until a better solution can be thought of in the meantime, but wanted to have this open to show the current state of the upgrade.
There is also currently a discussion about allowing for global CSS, which would help as
Carbon for IBM.com
is technically considered a 3rd party library in this scenario: vercel/next.js#27953Changelog
Changed
next
to v11react
to v17Removed
next.config.js