angular-architects / module-federation-plugin

MIT License
737 stars 203 forks source link

Getting Error during npm install #617

Open bbpcoforge opened 3 months ago

bbpcoforge commented 3 months ago

Hi Team, I am getting below error, can someone please help me to resolve this. I am using below libraries @angular-architects/native-federation@17.1.8

+-- @angular/animations@17.3.12 | -- @angular/core@17.3.12 deduped +-- @angular/common@17.3.12 |-- @angular/core@17.3.12 deduped +-- @angular/compiler@17.3.12 | -- @angular/core@17.3.12 deduped +-- @angular/core@17.3.12 +-- @angular/forms@17.3.12 |-- @angular/core@17.3.12 deduped +-- @angular/platform-browser-dynamic@17.3.12 | -- @angular/core@17.3.12 deduped +-- @angular/platform-browser@17.3.12 |-- @angular/core@17.3.12 deduped -- @angular/router@17.3.12 -- @angular/core@17.3.12 deduped

Below error I am getting

D:\poc\Angular\native-federation-mfe\angular-mfe>npm i

angular-mfe@0.0.0 postinstall node node_modules/@angular-architects/native-federation/src/patch-angular-build.js

node:internal/modules/cjs/loader:1148 throw err; ^

Error: Cannot find module 'D:\poc\Angular\native-federation-mfe\angular-mfe\node_modules\@angular-architects\native-federation\src\patch-angular-build.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._load (node:internal/modules/cjs/loader:986:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v20.16.0 npm error code 1 npm error path D:\poc\Angular\native-federation-mfe\angular-mfe npm error command failed

diandsonc commented 3 months ago

@bbpcoforge could you please share a sample code reproducing the error?