-
-
Notifications
You must be signed in to change notification settings - Fork 197
[IOS]Unexpected duplicate tasks #5214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @farfromrefug , |
After latest fixes (currently available in CLI's next version), CLI will detect if NativeScript plugin exists multiple times in node_modules. In case that's the case, CLI will check the versions of the plugin in each occurrence and will apply the following rules:
This must produce warning that nativescript-ui-core exists in multiple locations.
NOTE: the error message will guide you to delete package-lock.json (or other configuration file if it exists in your project). CLI checks if there's npm-shrinkrwrap.json, package-lock.json, yarn.lock and pnpm-lock.yaml. |
@rosen-vladimirov awesome! will test it and report any error. Will actually leave this open until i can confirm it works |
After some additional investigation, we've decided to implement the following:
|
Hey @farfromrefug , |
@rosen-vladimirov right sorry. Forgot to mention that right now it seems perfect. Will notify if i see any issue |
getting error like this below error: Unexpected duplicate tasks:
package.json
could you please help me to fix this issue |
@mvnidheesh1992 are you using the latest 8.1.1 CLI ( |
Hi @rigor789 nativescript CLI is 8.0.2 |
@mvnidheesh1992 please try the latest version, I believe it should work fine. |
@rigor789 Yes. it is working fine. Thank you !!! |
`error: Unexpected duplicate tasks:
same error facing, I am using nativescript cli 8.1.5 |
@sarbbjeet something is pulling in |
When i am in a working env dev with npm links i might end up with an XCode build error
Unexpected duplicate tasks
It is due to native deps being added twice.
For example my plugin
nativescript-gesturehandler
comes with a framework.In my current case i have it in my app package.json but also as a dependency of another plugin.
Consequently i have
nativescript-gesturehandler
in:Could you filter duplications when creating the XCode project and adding modules targets?
The text was updated successfully, but these errors were encountered: