react-bootstrap
Module not found when import any hooks
#52518
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 Binaries: Node: 18.14.0 npm: 9.3.1 Yarn: 1.22.19 pnpm: 8.6.3 Relevant Packages: next: 13.4.9 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/Cow258/import-issue
https://codesandbox.io/p/github/Cow258/import-issue/main
To Reproduce
Describe the Bug
After #50900 added default modularizeImports config,
We are unable to import any hooks (like
useAccordionButton
) fromreact-bootstrap
,This will cause an error
Module not found: Can't resolve 'react-bootstrap/useAccordionButton'
Expected Behavior
We can import any components and hooks from
react-bootstrap
Which browser are you using? (if relevant)
Chrome 114.0.5735.198
How are you deploying your application? (if relevant)
Vercel
NEXT-1425
The text was updated successfully, but these errors were encountered: