unable to run mfe app on windows: module not found MFClient.js
See original GitHub issueNoticed 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:
- Created 10 months ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay let me get a windows box up and ill check it
Ill get a windows VM tomorrow and try running one of these setups in there and see if i can repro it