This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
296
stars
49
forks
source link
[BUG]: Removing Fluent Nav from app but there is still dependency on Fluent Nav in the solution package #462
Describe the bug
We had imported the Creator Kit into source environment and utilized the Fluent Nav components in our application. Subsequently, we removed Fluent Nav from the app. Despite ensuring that the application was free of Fluent Nav component, when we checked the application's dependencies, the dependency on Fluent Nav still persisted. This prevented us from importing the application into the target environment where the Creator Kit cannot be imported due to limited privileges.
Additionally, we employed a reverse engineering approach for testing. We developed a test application in source environment, where the Creator Kit was already installed, and integrated the Fluent Nav component into it and bound the component to a SharePoint List. Surprisingly, when we examined the dependencies, this test application showed no dependencies, even though it included the Fluent Nav custom component.
To Reproduce
Steps to reproduce the behavior:
A. Create an app and solution with the Fluent Nav component
Install Creator Kit at source environment.
Create an app using Fluent Nav
Save and publish the app
Create a solution with the app
B.Step to check the solution dependency:
Go to the solution of the app
Click 'Apps'
Click the three dots next to the app
Click 'Advanced'
Click 'Show Dependencies'
Click 'Uses'
Scroll down to Creator Kit
.cat_PowerCAT.Nav is shown as the dependency
C. Remove the component
Afte go back to the app studio
Remove the Fluent Nav component
Save and Publish the app
D. Repeat steps to check the solution dependency:
Click 'Apps'
Click the three dots next to the app
Click 'Advanced'
Click 'Show Dependencies'
Click 'Uses'
Scroll down to Creator Kit
cat_PowerCAT.Nav is still shown as the dependency
E. Install the solution to target environment (not installed with Creator Kit)
Export the solution with the app free of Fluent Nav as a managed solution
Download the solution (in .zip)
Go to target environment
Click 'Solutions'
Click 'Import Solution'
Select the solution package just downloaded
Follow the import instruction on screen
An error appears show "The following solution cannot be imported: {Solution Name}. Some dependencies are missing. The missing dependencies are : cat_PowerCAT.Nav"
Reversed engineering approach for testing:
1 Create an app and solution without using the Fluent Nav component
Check the solution dependency
The Dependency show no depdency of Creator Kit
Go back to the app
Add Fluent Nav to the app
Bind the Fluent Nav with SharePoint List
Save and publish the app
Check the solution dependency
Fluent Nav is NOT shown as the dependencies
Expected behavior
When adding or removing the Fluent Nav, the solution dependency should be reflected accordingly:
Removing Fluent Nav from app, solution package should have no dependency on Fluent Nav
Adding Fluent Nav to app, solution package should show dependency on Fluent Nav
@milkcoffeecat2024 if you create a duplicate of the app (in the studio Save > Save As), does the duplicate also have the dependency ghost issues you're seeing?
Describe the bug We had imported the Creator Kit into source environment and utilized the Fluent Nav components in our application. Subsequently, we removed Fluent Nav from the app. Despite ensuring that the application was free of Fluent Nav component, when we checked the application's dependencies, the dependency on Fluent Nav still persisted. This prevented us from importing the application into the target environment where the Creator Kit cannot be imported due to limited privileges.
Additionally, we employed a reverse engineering approach for testing. We developed a test application in source environment, where the Creator Kit was already installed, and integrated the Fluent Nav component into it and bound the component to a SharePoint List. Surprisingly, when we examined the dependencies, this test application showed no dependencies, even though it included the Fluent Nav custom component.
To Reproduce Steps to reproduce the behavior:
A. Create an app and solution with the Fluent Nav component
B.Step to check the solution dependency:
C. Remove the component
D. Repeat steps to check the solution dependency:
E. Install the solution to target environment (not installed with Creator Kit)
Reversed engineering approach for testing: 1 Create an app and solution without using the Fluent Nav component
Expected behavior When adding or removing the Fluent Nav, the solution dependency should be reflected accordingly:
Additional context The issue we faced is similar to these posts: https://github.com/microsoft/powercat-creator-kit/discussions/206 https://powerusers.microsoft.com/t5/Building-Power-Apps/Trying-to-fully-remove-dependency-to-the-Creator-Kit-from-my/td-p/2152496
But for us, the component is Fluent Nav and the dependency does not go away in the next day. It persists until today.
AB#3119