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
Could not find the module in the React Client Manifest. This is probably a bug in the React Server Components bundler. #55609
Comments
Getting the same bug with almost all my @mui/material imports. Next13.4 also had this but was much more rare to happen. New updates is on every render with ALL imports |
Related to/same as #55566 |
I just encountered this error as I upgraded to |
Getting the same for Does not work: import { CategoryBar } from "@tremor/react"; But this works: import CategoryBar from "@tremor/react/dist/components/vis-elements/CategoryBar/CategoryBar"; |
Found a Fix after bashing my head against it for 2 days Chaning from: this fixed, for me atleast all bugs and warnings and render errors related to: Slugs, Parallel route and possible also all other Next Routing that uses MUI must also be changed to get rid of the bug/warning |
The barrel optimization loader creates a virtual module to re-export from the original file, which causes the situation that now there are 2 modules with the same resource but only one of them is the actual code. When the code contains `"use client"`, the Flight plugin has to collect its `buildInfo` and generate the manifest and client entry module. However, we currently deduplicate module by resource in the traversal logic to avoid unnecessary loops. To make it work together with the virtual barrel module, we'll need to prefix the resource path to make it different from the original module. Closes #54967. Closes #55609. Closes #55566.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/recursing-mountain-yxz8hj?file=/src/components/MediaCard.tsx
To Reproduce
Start the application in
v13.5.1
and see how "Unhandled Runtime Error" immediately pops up.If
return <Typography>{text}</Typography>;
in MediaCard.tsx in the codesandbox-reproduction is replaced byreturn <p>{text}</p>;
, the error goes away.Also, if the usage of Box in
page.tsx
is removed, the error also goes away.Current vs. Expected behavior
Currently with
v13.5.1
, when using named imports in both a parent and child file, "Unhandled Runtime Error" is shown. If using named imports in only one of the files, everything works as expected.Expected to be able to use named imports everywhere as in
v13.4.19
.Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023 Binaries: Node: 16.17.0 npm: 8.15.0 Yarn: 1.22.19 pnpm: 7.1.0 Relevant Packages: next: 13.5.1 eslint-config-next: 13.4.19 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.6 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure, App Router
Additional context
I've only tested named imports from
@mui/material
The text was updated successfully, but these errors were encountered: