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

Remove react-bootstrap from default modularizeImports #52519

Conversation

Cow258
Copy link
Contributor

@Cow258 Cow258 commented Jul 10, 2023

Fixing a bug

Fixes #52518

What?

Error when import hooks from react-bootstrap
Module not found: Can't resolve 'react-bootstrap/useAccordionButton'
image

Why?

After #50900 added default modularize imports config,
so we are unable to import any hooks (like useAccordionButton) from react-bootstrap,

How?

Just remove react-bootstrap from default modularize imports config

@vercel-spaces
Copy link

vercel-spaces bot commented Jul 10, 2023

Notifying the following users due to files changed in this PR:

@timneutkens, @ijjk, @shuding, @styfle, @huozhi:

packages/next/src/server/config.ts

This comment was posted based on the notify modifier.

@ijjk
Copy link
Member

ijjk commented Jul 10, 2023

Allow CI Workflow Run

  • approve CI run for commit: d4283d4

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@liuyib
Copy link

liuyib commented Aug 28, 2023

This issue has been fixed in #53051, so I think the PR can be closed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

react-bootstrap Module not found when import any hooks
4 participants