-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Next 13 app dir #619
Comments
When its stable, yes - its a complex problem and quite low on the priority list at the moment. |
Is this something that would be reasonable for anyone else to pick up, @ScriptedAlchemy , or is it complex enough that it's really on you? I really want to see this working. I've dug into it just a little and there's a lot of magic happening behind the scenes. I'll gladly keep digging unless it's a waste of my time. :) |
Yeah anyone could pick it up, id help :) I mostly know what needs to be done - just dont have the capacity to go through trial and error of it. If we wanted to support, id suggest we try RSC with the stock webpack example from facebook. Get federation of RSC woring without next, then backport the concept back. What needs to happen is 1 module needs to become two.
So we need to make a way for exposed modules to export two possibilities, or we need to double expose them and pass one exposed file over the RSC loader import thing from 'remote/myExposed_RSC' for example, the consumer needs to understand if they are RSC and if so theyd want to load the If i had extra hands, im sure we could solve this without much pains. Trial and error takes time though. How next does this is via loader layers. So if the parent import is RSC, it knows the child import should be rsc proxy component. When you expose stuff though, there is no parent in the same manner - so we need to apply the loader |
For me personally, I don't even care about RSC MF. I just want normal CSR run-time MF to work when using /app. I'm looking into the code to try to figure out why it's throwing errors with such a simple use case (one basic remote client component) but I don't know enough about the internals to find my way. I'll keep looking, because I'm interested in understanding and possibly helping. |
@ScriptedAlchemy I think a quick fix would be to add an option that can disable the auto-injection of defaults here: Netx.js 13 expects |
@snitin315 if you want to send me a PR, I'm happy to merge into v6 |
I'd also recommend looking at the async boundary runtime PR. With next async, I no longer need auto injection, since shared internals now work |
App Router is now stable since NextJS 13.4 (May 4th, 2023) |
Stale issue message |
No |
I'm seeing this error and I'm not using the app directory at all. |
can you post repo or screenshot? |
I realized I commented in the wrong thread. My bad... let me move this discussion. |
![Screen Shot 2023-03-09 at 15 12 48](https://user-images.githubusercontent.com/43549299/224020184-454a11ce-1ba2-4440-b453-de8a3ce55e1f.png)
is it planned to add support for next 13 app dir feature?The text was updated successfully, but these errors were encountered: