Skip to content

Commit

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

0 comments on commit 712aae1

Please sign in to comment.