Closed calarconpieriz closed 4 years ago
@calarconpieriz Thank you for submitting the issue. Unfortunately, we cannot make every version pass the audit checks because third-party deps (e.g., build-angular) are outside of out control. They also have ~ and ^ in their package.json
which means that even if the version passed the check once, it may not pass it again.
We are, however, making sure that npm audit
passes every time we release a new version. For instance, both Nx 8.12.7 and 9.0.2 pass the check. In your case, the easiest thing might be to update the version of serialize-javascript
in your package.json
using resolutions (see here: https://github.com/nrwl/nx/issues/2458)
I'm going to close this issue.
@vsavkin thank you. I was able to solve it with the resolutions
workaround.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Expected Behavior
Running the
npm audit
command should pass without vulnerabilities for version 7.8.7 using Angular 7 and Ngrx 7.Current Behavior
Failure Information (for bugs)
When you are running an Angular <= 7 application with Ngrx 7 and @nrwl/builders 7.8.7, the
npm audit
command shows some vulnerabilities. In order to fix them, it is necessary to update @nrwl/builders and @nrwl/schematics to a major version that forces you to update the Angular version and Ngrx as well that contains breaking changes (specifically Ngrx) and it is a problem in a big application.Context
Other
The solution would be to update
serialize-javascript
to>=2.1.1
andnode-sass
to>=4.13.1
for version7.8.7
(patch 7.8.8 for instance).I also know that a workaround for this would be to use the npm force resolutions, but that would not be the best approach.