You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
CLI: 5.4.2
Cross-platform modules: 5.4.0
Android Runtime: 5.4.0
iOS Runtime: 5.4.0
Describe the bug
package.json is missing yargs-parser as a dependency. It is required here. You are getting away with it currently because npm and yarncurrently use a flattened package hierarchy, and yargs installs yargs-parser. That's an implementation detail of the package manager that should not be relied on. Smarter package managers like pnpm (and no doubt future versions of npm and yarn) which do not flatten the hierarchy cause tns to break.
NativeScript CLI doesn't respect correctly `hmr: false` when the option is provided through dashed options from command. This led to the exception when the application is built using CLI and deployed on device using Xcode as the `hmr` is included in app's bundle.
Fixes:
#4846#4814
NativeScript CLI doesn't respect correctly `hmr: false` when the option is provided through dashed options from command. This led to the exception when the application is built using CLI and deployed on device using Xcode as the `hmr` is included in app's bundle.
Fixes:
#4846#4814
NativeScript CLI doesn't respect correctly `hmr: false` when the option is provided through dashed options from command. This led to the exception when the application is built using CLI and deployed on device using Xcode as the `hmr` is included in app's bundle.
Fixes:
#4846#4814
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):Describe the bug
package.json
is missingyargs-parser
as a dependency. It is required here. You are getting away with it currently becausenpm
andyarn
currently use a flattened package hierarchy, andyargs
installsyargs-parser
. That's an implementation detail of the package manager that should not be relied on. Smarter package managers likepnpm
(and no doubt future versions ofnpm
andyarn
) which do not flatten the hierarchy causetns
to break.To Reproduce
npm i -g pnpm
.pnpm i -g nativescript
tns info
You'll get something like this error output:
Now do this:
pnpm i -g yargs-parser
tns info
No error.
Expected behavior
All packages that are directly required by source code should be declared in
package.json
. If that is done there will be no missing module error.Sample project
Additional context
The text was updated successfully, but these errors were encountered: