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

[CORS]: @module-federation/nextjs-mf #2700

Closed
5 tasks done
nurulakbaral opened this issue Jul 5, 2024 · 3 comments
Closed
5 tasks done

[CORS]: @module-federation/nextjs-mf #2700

nurulakbaral opened this issue Jul 5, 2024 · 3 comments

Comments

@nurulakbaral
Copy link

nurulakbaral commented Jul 5, 2024

Describe the bug

I tried following the guide in the docs but found CORS like this.
Should I use Next.js custom server to handle this? I don't see guide in docs.

image

Reproduction

Used Package Manager

pnpm

System Info

npx rimraf .next && NEXT_PRIVATE_LOCAL_WEBPACK=true next dev -p 3001

Validations

@vini-ak
Copy link

vini-ak commented Jul 5, 2024

Same issue here, but using yarn as package manager. Any solutions?

@ScriptedAlchemy
Copy link
Member

try with latest release of nextjs-mf

@vini-ak
Copy link

vini-ak commented Jul 6, 2024

It worked!!! Thank you so much, @ScriptedAlchemy!

Next.js: v14.1.4
@module-federation/nextjs-mf: v8.3.27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants