Closed davicedraz closed 3 years ago
Related to #4490 #4610
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.
Please see the Contributing Guide for how to create a Code Reproduction.
Thanks! Ionitron 💙
In our previous build (success) capacitor-secure-storage-plugin
uses core-js 3.12.1
and the last build (failure) uses core-js 3.13.0
. What indicates a transitive dependency problem. Although the package-lock.json
is identical between the two builds, the '"core-js": "^3.4.1"' snippet inside others dependencies caused npm to update that dependency.
We were able to work around this problem by:
^
from package.json
npm ci --registry=https://registry.npmjs.org/
to our build pipelineAfter this, the build completed successfully. Apparently one of the first steps of npm ci
(unlike npm install
) is to delete the node_modules
folder and do a clean install of the dependencies, in addition to considering the exact versions specified on package-lock.json
Ref: https://stackoverflow.com/questions/52499617/what-is-the-difference-between-npm-install-and-npm-ci
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
@capacitor/cli 2.0.0
@capacitor/core 2.0.0
@capacitor/ios 2.0.0
@capacitor/android 2.0.0
Platform(s)
Current Behavior
The error output (see below) when running
ionic build
. No changes were made to the source code, a build was successful only a few days ago. When executingrm -rf node_modules && rm package-lock.json && npm install
in a local repository (which already has the dependencies downloaded) the error happens.Expected Behavior
Should build successfully with
ionic build
orng run app:build
.Code Reproduction
Create a project with the same dependencies and try to build it.
Other Technical Details
npm --version
output: 6.14.4node --version
output: v12.17.0pod --version
output (iOS issues only):Additional Context
ionic build
output:dependencies in package.json: