Skip to content

Commit

Permalink
fix(react): Ensure require('nx') to resolve correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Oct 23, 2023
1 parent cc8d8e8 commit dce61a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default async function* moduleFederationDevServer(
options: ModuleFederationDevServerOptions,
context: ExecutorContext
): AsyncIterableIterator<{ success: boolean; baseUrl?: string }> {
const nxBin = require.resolve('nx');
// Force Node to resolve to look for the nx binary that is inside node_modules
const nxBin = require.resolve('nx/');
const currIter = options.static
? fileServerExecutor(
{
Expand Down

0 comments on commit dce61a1

Please sign in to comment.