Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
✔ Component nativescript has 7.0.12 version and is up to date.
✔ Component @nativescript/core has 7.0.13 version and is up to date.
✔ Component @nativescript/ios has 7.0.6 version and is up to date.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
The error appears when version in package.json refers to @node_modules folder (does not contain exact string). Such setup is common for monorepo-style projects (for example, @nrwl/nx) - but monorepo is not mandatory, error happens when version is specified indirectly.
For example:
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):✔ Component nativescript has 7.0.12 version and is up to date. ✔ Component @nativescript/core has 7.0.13 version and is up to date. ✔ Component @nativescript/ios has 7.0.6 version and is up to date. ✔ Component @nativescript/android has 7.0.1 version and is up to date.
Describe the bug
ns build android
return error:The error appears when version in package.json refers to
@node_modules
folder (does not contain exact string). Such setup is common for monorepo-style projects (for example,@nrwl/nx
) - but monorepo is not mandatory, error happens when version is specified indirectly. For example:instead of
Expected behavior Version resolved w/out errors.