Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Cannot build sample components

(0) ShareShare
ReportReport
Posted on by

As suggested here I open this issue here. Please refer to the OP, I don't want to repost everything.

 

tl;dr: cannot build sample iframe component, pcf-scripts not found

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Cannot build sample components

    Thanks for the quick reply.

     

    I finally figured it out. While node_modules/.bin was populated all the scripts inside it were empty (for whatever reason). Deleting and npm i again didn't recreate .bin but a complete wipe of node_muldes and reinstall did it. I was then able to follow the last steps to create the zip.

     

    Thanks yall!

  • RajYRaman Profile Picture
    270 on at
    Re: Cannot build sample components

    @Anonymous- First run the build on TS_IFrameControl and confirm that the project actually builds.

    image.png

    Next confirm the cdsproj (used by MSBuild) has reference to your pcfproj.

    image.png

    Next, open the TS_IFrameControl.pcfproj and update the version to 1.* from 0.*.

    image.png

     

    Once you do that you should be able to build your assembly with "msbuild /restore".

    image.png

  • Community Power Platform Member Profile Picture
    on at
    Re: Cannot build sample components

    Hi and thanks for your responses.

     

    Deps are up to date and so is (was) the CLI the last time I tried. Please refer to the linked issue on GH.

    Steps are the ones from the tutorial.

  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Re: Cannot build sample components

    Hi! Are using the latest version of Power Apps Cli?

    Another thing, you wrote about the pac path. Can you provide for us the command line that are you executing to create the solution component?

  • Roshan Gautam Profile Picture
    7 on at
    Re: Cannot build sample components

    This usually happens if you are missing npm dependencies (pcf-scripts is one of them). Make sure you npm install went through fine and you have all dependencies installed inside node_modules folder insider your control pcf project.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard