Skip to content

Plugins' platforms directory should not exist in tns_modules #3932

@rosen-vladimirov

Description

@rosen-vladimirov

Tell us about the problem

The <project dir>/platforms/<platform>/.../tns_modules directory should contain only the .js code of the application. However, in case nativescript plugin is installed in the node_modules directory of another package (not directly inside the project), its platforms directory is copied to tns_modules as well. This leads to error when trying to build application that has such structure with Xcode 10.

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.2.4
  • Cross-platform modules: Not applicable
  • Runtime(s): Not applicable
  • Plugin(s): local copy of nativescript-ui-listview (check steps to reproduce)

Please tell us how to recreate the issue in as much detail as possible.

Use this project:
https://github.com/rosen-vladimirov/application-tns_modules-native-files
Check its README for steps to reproduce

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions