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

feat(next): upgrade to v11 #62

Closed
wants to merge 5 commits into from

Conversation

jeffchew
Copy link
Member

@jeffchew jeffchew commented Aug 19, 2021

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 regular scss 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#27953

Changelog

Changed

  • Upgrade next to v11
  • Moved to default webpack 5 and sass support
  • Moved to dart-sass
  • Upgraded react to v17

Removed

  • Most of the custom webpack 4 configuration in next.config.js

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Aug 19, 2021

@stale
Copy link

stale bot commented Apr 16, 2022

We've marked this issue as stale because there hasn't been any activity for 60 days. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions.

@stale stale bot added the inactive label Apr 16, 2022
@jeffchew
Copy link
Member Author

Closing, Next v12 might actually work better...

@jeffchew jeffchew closed this Apr 19, 2022
@jeffchew jeffchew deleted the feat/next-11 branch April 19, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants