Announcements
I am trying to reuse the angular components in PowerApps Component Framework. I have created the angular project inside PCF folder,bundled the angular files and used it in index.ts file.It is working in local but when I import the solution and using in model driven app it is not working.I am using angular 10. I am getting below error.
Anyone faced this issue?
Hi @Anonymous :
Please consider export your PCF Project as a unmanaged solution, then try it again, check if the issue is fixed.
If the problem persists, please refer to this post or consider creating a support ticket.
Best Regards,
Bof
Hi @v-bofeng-msft I tried importing unmanaged solution still the issue exists
This is due to bug in the UCI which conflicts with the angular component. Fix will be rolled out in upcoming deployments .
Here is workaround (but hacky 😞 ) which can be used to unblock development.
window's Promise.resolve function is overridden in UCI in a manner which makes it incompatible with Zone.js. This can be circumvented by gaining reference to an untouched definition of Promise via an iframe before the Zone.js dependency is imported: // Address promise issueconst dummyFrame = document.createElement("iframe");document.body.appendChild(dummyFrame);const _innerProm_ = (dummyFrame.contentWindow as any).Promise;document.body.removeChild(dummyFrame);(window as any).Promise = _innerProm_;
// your code starts hereimport 'myAngularProjectBundle';
Hemant
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 542 Most Valuable Professional
Haque 206
Kalathiya 201 Super User 2026 Season 1