-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Plugins with native components installed at workspace-level fail to work #24
Comments
As of |
Found the exception! For new projects, |
Interesting - @rigor789 and I had been looking into this in past couple weeks and believe there may be {N} cli adjustments needed to fully resolve but would be curious what else you have been able to determine. Ideally we do want root level package.json dep's to just get included in a {N} app build inherently if those dep's are included in the build (thus not necessarily in the nested app package but in the npm dep tree). |
I've been testing this across current and new workspaces, and I can say for sure that workspace level plugins work fine, the only take is the setup part of any plugin--If the plugin runs a post-install script that changes anything in the app, then it fails, often silently. Even for the scenario of Firebase plugin, what I did was to install the plugin on app level, then remove it again, keeping only the root level installation and it still worked. |
Hi there, if I put any plugin containing some aar files at the workspace level, those aar won't be included in the build...But if a add also the declaration into local app package.json dependencies...then those aar files are added and processed... Any progress on that ? |
@lostation, so far this is still the same. |
@mahmoudajawad, as with @lostation, I'm using various plugins, like the Firebase ones. These are plugins that require Pods, which means they have to be installed in each app. However, I'm also using these plugins in the libs, which means I have to install the plugins ALSO in the root package.json. Is this the correct approach? The reason I ask is that it seems to work, but I just want it confirmed. I sometimes experience issue with running the app more than once, where the generated Podfile becomes incorrect. It seems like the plugins' config is added again for each run. |
@fpaaske i moved off Nx with NativeScript awhile back, so I can no longer confirm or deny this issue. However, it could be a good time to revisit Nx for NativeScript. |
@NathanWalker, could you shed some light on this issue and my question above? And do you know what could cause this error on second run of the app? A
|
Overview
Following on this comment, it is known that NativeScript plugins installed at workspace-level, that have native components (libs) will fail to work. This is a confirmed bug as it is not the intended behaviour (as explained by Nathan).
Versions info
Nx workspace: v12.2
NS CLI: v8.0.2
NS Nx Plugin v1.0.4
OS: macOS 10.15.7
node: v15.14.0
npm: v7.7.6
More details
I created this issue to have a reference for anyone having the same issue at the moment, until it is fixed.
The text was updated successfully, but these errors were encountered: