-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Error: Placement of 'use client' Directive in Next.js App with nextjs-mf #953
Comments
Any update on this? |
Submit a PR and ill cut a new release, some users have found that adding "use client" to the top of this file resolves the issue. I'm planning on releasing v7 of this plugin next week, I'm not sure I have include-defaults anymore but likely a similar directive needs to be added there as well. |
@ScriptedAlchemy I submitted a PR here : I'm not sure whether removing the patch on server builds is a proper solution. I noticed that you are not including the federation plugin for server builds in your example repo which is where I got the idea. Hope this helps! |
Co-authored-by: Ron Williams <[email protected]> Co-authored-by: Zack Jackson <[email protected]>
Co-authored-by: Ron Williams <[email protected]> Co-authored-by: Zack Jackson <[email protected]>
I have released v7 which changed the structure of this file, but i did add use client into the loader that patches this specific file so it should have same result |
Co-authored-by: Ron Williams <[email protected]> Co-authored-by: Zack Jackson <[email protected]>
I am currently using nextjs-mf with nextjs version 13.4.4 and the App router. However, I am encountering an error when I utilize the "use client" directive in both the pages or components within the app directory. The error message I receive is as follows:
I am seeking guidance on how to resolve this issue and make the necessary adjustments to rectify it.
The text was updated successfully, but these errors were encountered: