Skip to content

npm update corrupt project #16

@waynelam-bod

Description

@waynelam-bod

Hi,

I am trying update the project since there is a few high (33 vulnerabilities (13 low, 9 moderate, 11 high)) vulnerability. But after the update, npm run start:proxy and build no longer works. Please see below:

Environment:
node -v
v22.21.1

npm -v
10.9.4

npm update message

`npm update
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 142 packages, removed 158 packages, changed 354 packages, and audited 1051 packages in 36s

175 packages are looking for funding
run npm fund for details

13 vulnerabilities (6 low, 7 moderate)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
PS C:\Users\bodl3227\PycharmProjects\customModule> npm run start:proxy

[email protected] start:proxy
ng serve --proxy-config ./proxy/proxy.conf.mjs -o

Warning: Running a server with --disable-host-check is a security risk. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a for more information.

  • Generating browser application bundles (phase: setup)...C:\Users\bodl3227\PycharmProjects\customModule\node_modules\webpack\lib\container\ModuleFederationPlugin.js:58
    throw new TypeError(
    ^

TypeError: The 'compilation' argument must be an instance of Compilation
at ModuleFederationPlugin.getCompilationHooks (C:\Users\bodl3227\PycharmProjects\customModule\node_modules\webpack\lib\container\ModuleFederationPlugin.js:58:10)
at Hook.eval [as call] (eval at create (C:\Users\bodl3227\PycharmProjects\customModule\node_modules\tapable\lib\HookCodeFactory.js:19:10), :92:1)
at Hook.CALL_DELEGATE [as _call] (C:\Users\bodl3227\PycharmProjects\customModule\node_modules\tapable\lib\Hook.js:16:14)
at Compiler.newCompilation (C:\Users\bodl3227\PycharmProjects\customModule\node_modules@angular-devkit\build-angular\node_modules\webpack\lib\Compiler.js:1273:30)
at C:\Users\bodl3227\PycharmProjects\customModule\node_modules@angular-devkit\build-angular\node_modules\webpack\lib\Compiler.js:1318:29
at eval (eval at create (C:\Users\bodl3227\PycharmProjects\customModule\node_modules\tapable\lib\HookCodeFactory.js:31:10), :31:1)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Node.js v22.21.1`

My package.json
package.json

Angular.json:
angular.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions