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 / Angular flip component...
Power Apps
Unanswered

Angular flip component- not working

(0) ShareShare
ReportReport
Posted on by 67

Hello, I am trying to implement the Angular flip component from the sample component. 

It is basically the copy pasting of code. There were some dependency issues, i could fix some of the errors by npm install -D @types/angular-ui-bootstrap, npm install -D @types/angular-sanitize etc.

I could not get the below error fixed

ERROR in ./JSAngularJSFlipControl/index.ts
Module not found: Error: Can't resolve 'angular' in 'C:\Users\vani\Documents\JSAngularJSFlipControl\JSAngularJSFlipControl'
@ ./JSAngularJSFlipControl/index.ts 7:14-32
[13:15:32] [build] Failed:
[pf-1033] [Error] An error occurred compiling or bundling the control.

 

your help is appreciated!! thanks

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @vani2000 

    Could you please share more details with your issue?

    What change did you make to the sample component?

    Which steps did you run into the problem?

    Could you share some screenshots of your steps?

    Sik

  • vani2000 Profile Picture
    67 on at

    Hi,

    Sorry for not so clear.

    I am trying to run the sample component from the below link

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/angular-flip-control

    I have the same code copy pasted from the above link in index.ts, controlmanifest.Input.xml When i did npm start it showed some error that 

    angular-ui-bootstrap is not found. i could fix it by npm install -D @types/angular-ui-bootstrap.
     
    When i did npm start again, i get the following error which i am not sure to fix it?image.png
     
     

     

  • JP-09110045-0 Profile Picture
    Microsoft Employee on at

    Hi @vani2000 ,

    I think the example on the webpage may be a bit out of date and thus why the issue.  Try the source on the GitHub page https://github.com/microsoft/PowerApps-Samples/tree/master/component-framework/TS_AngularJSFlipControl/JSAngularJSFlipControl and see if it fixes your issue.

    (Edited, added correct GitHub link)

  • vani2000 Profile Picture
    67 on at

    Hi , i get 404 error , when i access https://github.com/microsoft/PowerApps-Samples/tree/master/component-framework/JS_AngularJSFlipControl

     

    i could access https://github.com/microsoft/PowerApps-Samples/tree/master/component-framework/TS_AngularJSFlipControl/JSAngularJSFlipControl. i think this is the updated one if i am right?

    Thanks for your help, i will try the updated one.

     
  • JP-09110045-0 Profile Picture
    Microsoft Employee on at

    Yes, that should be the correct one.  Sorry for the copy/paste error on the invalid link.  I'll update the original post (if I can) so that it can help others and not give a 404.

  • vani2000 Profile Picture
    67 on at

    Hi, 

    i tried copying the code from index.ts, manifest.xml, and css file from the https://github.com/microsoft/PowerApps-Samples/tree/master/component-framework/TS_AngularJSFlipControl/JSAngularJSFlipControl.

     

    i get exactly the same error again, 

    ERROR in ./JSAngularJSFlipControl/index.ts
    Module not found: Error: Can't resolve 'angular' in 'C:\Users\vani\Documents\JSAngularJSFlipControl\JSAngularJSFlipControl'
    @ ./JSAngularJSFlipControl/index.ts 7:14-32
    [11:51:32] [start] Failed:
    [pcf-1033] [Error] An error occurred compiling or bundling the control.

  • JP-09110045-0 Profile Picture
    Microsoft Employee on at

    Ah, ok, I'll look in to it later today.  I was able to get a version working, so I'll double check on what differences it could be that's causing the failure.

  • vani2000 Profile Picture
    67 on at

    thank you!

  • JP-09110045-0 Profile Picture
    Microsoft Employee on at

    I'm not seeing any build issues after downloading the full folder from GitHub. I didn't see package.json file in your list of files you copied, so make sure to grab that as it has newer packages and typings required for the build.  Afterwards, make sure you delete the package-lock.json file and rerun 'npm i'.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard