question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to run mfe app on windows: module not found MFClient.js

See original GitHub issue

Noticed something when trying to run the mfe app on windows. On mac, I had no issues starting up my apps. Was wondering if there is a solution for this. Checking the modules folder, I noticed we have a patchNextClientPageLoader.js file that was meant to resolve this issue however it doesn’t seem to be working.

customer: error - ../../node_modules/next/dist/client/page-loader.js:111:23
customer: Module not found: Can't resolve '..\..\..\@module-federation\nextjs-mf\client\MFClient.js'
customer: Did you mean './..\..\..\@module-federation\nextjs-mf\client\MFClient.js'?
customer: Requests that should resolve in the current directory need to start with './'.
customer: Requests that start with a name are treated as module requests and resolve within module directories (node_modules, C:\Users\Raymond\next-nx-mfe).
customer: If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
customer: Import trace for requested module:
customer: ../../node_modules/next/dist/client/index.js
customer: ../../node_modules/next/dist/client/next-dev.js
customer: https://nextjs.org/docs/messages/module-not-found

my dependencies: @module-federation/nextjs-mf: “^5.11.0” next: 12.3.1

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ScriptedAlchemycommented, Nov 15, 2022

Okay let me get a windows box up and ill check it

1reaction
ScriptedAlchemycommented, Nov 14, 2022

Ill get a windows VM tomorrow and try running one of these setups in there and see if i can repro it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · module-federation/nextjs-mf - GitHub
Contribute to module-federation/nextjs-mf development by creating an account on ... unable to run mfe app on windows: module not found MFClient.js bug ......
Read more >
Returning 404 not found for the micro frontend dependencies ...
I am able to run micro frontend separately(running on port 4001) but when I tried to run a host application(running on port 4000)...
Read more >
Micro-Frontends at scale with Module Federation
The module federation configuration changes a bit in this MFE. It features two new properties not present in the App Shell MFE.
Read more >
How to Build Micro Frontends Using Module Federation in ...
The shell and mfe-basket application have their own separate webpack.config.js . Open the projects/shell/webpack.config.js file for either the ...
Read more >
Micro Focus Enterprise Server 5.0
An issue resulting in a Run-Time System error "RTS 119 Name is not unique" when calling 'setenv' to dynamically assign a dataset from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found