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 / Bugs in pcf-scripts no...
Power Apps
Unanswered

Bugs in pcf-scripts node package

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! I'm building components for Canvas apps which is great feature! Though, I have to do small fixes to the pcf-scripts node package. I don't see any other way to report bugs on this, nor is it opensource, so no pull-request. I'm using the latest version 1.2.6 of the package.

 

I have two components that compile into the same solution. Which works OK. But there are two issues that I'm running into.

 

First, you can only debug one component, and it is the 'first'. I want to debug them all at the same time. I've changed 'startTask.js' so that it starts a server for all components. This works great, maybe when more components are added it needs to be smarter, but for a few its a good solution. I've added the updated file as attachment. Change have been done from file 30 onward.

 

Secondly, and more importantly, when using two components, the ManifestTypes.d.ts-files are generated incorrectly. The first component is genearted OK, but the second component also has all properties of the first generated out etc. This is an issue in 'manifestTypesTask.js' where the ManifestTypesGenerator is instantiated in the constructor. But for each call to 'generateManifestTypes()' it should create a new instance of ManifestTypesGenerator. Updated file is attached again.

 

I hope this is helpful and that the issues can be fixed in a subsequent release! Thanks!

I have the same question (0)
  • Danish N. Profile Picture
    186 on at

    If I understood you correctly, you added two components in one .pcfproj. And to achieve that you made some modifications to pcf-scripts. Well currently it is not supported and you can post the idea here -> https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard