Hi All,
During build I got the following error, how to resolve it?
I set NODE_VERSION to 20.11.1 in environment variable.
(0 , private_1.purgeStaleBuildCache) is not a function
On my system I using Angular 18, node.js 20.11.1.
Here is the full log:
10:53:36.320 | Cloning repository… |
---|---|
10:53:37.007 | From GitHub - lkovari/mf-with-native-federation: Micro frontend with native federation |
10:53:37.007 | * branch 7d53113d2ca9d0fb0bf2bf02782217fd49555203 → FETCH_HEAD |
10:53:37.007 | |
10:53:37.047 | HEAD is now at 7d53113 modify scripts |
10:53:37.048 | |
10:53:37.133 | |
10:53:37.133 | Using v2 root directory strategy |
10:53:37.158 | Success: Finished cloning repository files |
10:53:38.837 | Checking for configuration in a wrangler.toml configuration file (BETA) |
10:53:38.838 | |
10:53:38.941 | No wrangler.toml file found. Continuing. |
10:53:40.883 | Detected the following tools from environment: [email protected], [email protected] |
10:53:40.883 | Installing nodejs 20.11.1 |
10:53:41.319 | Trying to update node-build… ok |
10:53:41.414 | To follow progress, use ‘tail -f /tmp/node-build.20240616085341.624.log’ or pass --verbose |
10:53:41.524 | Downloading node-v20.11.1-linux-x64.tar.gz… |
10:53:41.647 | → https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.gz |
10:53:43.246 | Installing node-v20.11.1-linux-x64… |
10:53:43.670 | Installed node-v20.11.1-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/20.11.1 |
10:53:43.670 | |
10:53:44.793 | Installing project dependencies: npm clean-install --progress=false |
10:53:54.608 | npm WARN deprecated [email protected]: This package is no longer supported. |
10:53:54.652 | npm WARN deprecated [email protected]: This package is no longer supported. |
10:53:54.665 | npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported |
10:53:54.915 | npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. |
10:53:55.110 | npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported |
10:53:55.567 | npm WARN deprecated [email protected]: This package is no longer supported. |
10:54:00.540 | |
10:54:00.540 | > [email protected] postinstall |
10:54:00.541 | > node node_modules/@angular-architects/native-federation/src/patch-angular-build.js |
10:54:00.541 | |
10:54:00.601 | @angular/build/package.json patched |
10:54:00.624 | |
10:54:00.624 | added 1063 packages, and audited 1064 packages in 15s |
10:54:00.624 | |
10:54:00.624 | 139 packages are looking for funding |
10:54:00.624 | run npm fund for details |
10:54:00.626 | |
10:54:00.626 | found 0 vulnerabilities |
10:54:00.653 | Executing user command: npm run build:lk-common-lib && npm run build-prod-b && npm run build-prod-a && npm run build-prod-s |
10:54:01.256 | |
10:54:01.256 | > [email protected] build:lk-common-lib |
10:54:01.256 | > ng build lk-common-lib --configuration production |
10:54:01.256 | |
10:54:02.146 | (0 , private_1.purgeStaleBuildCache) is not a function |
10:54:02.172 | Failed: Error while executing user command. Exited with error code: 1 |
10:54:02.183 | Failed: build command exited with code: 1 |
10:54:03.090 | Failed: error occurred while running build command |