web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF Control Angular Issue
Power Apps
Unanswered

PCF Control Angular Issue

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

 

MalaUdayappan_0-1606542805570.png

Anyone faced this issue?

 

 

I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bofeng-msft  I tried importing unmanaged solution still the issue exists

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    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 issue
    const 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 here
    import '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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard