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 / Impossible to set up a...
Power Apps
Suggested Answer

Impossible to set up a working pcf environment

(0) ShareShare
ReportReport
Posted on by 168

Hello, I have this issue for a while and today it becomes really troublesome for me, Initially I developp my pcf component in an old environment that I have generated two years ago, because this environment works without any issue.

If I generate a new component with the updated dependencies, nothing is working as expected and I can’t understand how to work with the code, what I’m doing:

I initiate the pcf component and I install the dependencies:
pac pcf init --namespace SampleNameSpace --name SampleComponent --template field --run-npm-install

I execute npm run build, and then npm start, everything is working well.

Then I want to edit the code, for exemple I have the following constructer, and I happen to remove the comments:

image.pngimage.png

And then I execute npm run build, and I have this very helpful error message:

image.png

I litterally just removed comments and this happens, I don’t know if it’s an expected error but what am I supposed to do with this log, it’s the same a I add just a variable, maybe it’s because I can’t add unused variables but I always have this same error message.

So I’m wondering If I’m doing something wrong with the installation, It’s the same I used in the past and nothing has changed in the Microsoft documentation.
I tried on two different computer with the latest updates, version of virtual studio… and I have the same issue.

Thank you for your assistance.

Best regards,
Djilali.

 

I have the same question (0)
  • Suggested answer
    vipuljain03 Profile Picture
    679 Super User 2026 Season 1 on at
    First thing first. Check the versions. Make sure Node.js is v16.x (v18 or v20 often causes issues with some packages). NPM is v8.x or v9.x. pac is atest stable. If not, update it.
     
    In your tsconfig.json, check if there are any strict settings. If yes, modify them to false. Then again try npm run build command.
     
    Please refer below two links:
    1. https://learn.microsoft.com/en-us/power-apps/developer/component-framework/issues-and-workarounds
    2. https://www.npmjs.com/package/pcf-start
    ======================================================
    If this reply helped you, please mark this reply as suggested answer ✔️ and give it a like to help others in the community find the answer too!
    Thanks,
    Vipul
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard