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
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'.
thank you!
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.
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.
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.
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.
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)
Hi,
Sorry for not so clear.
I am trying to run the sample component from the below link
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
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
WarrenBelz
85
Most Valuable Professional
mmbr1606
55
Super User 2025 Season 1
Michael E. Gernaey
52
Super User 2025 Season 1