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 / PCF script failed to run
Power Apps
Unanswered

PCF script failed to run

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone,

 

I'm trying to build a component framework. However, when I ran "npm run build" at my woking folder, it gave error like in the image.

I've tried to run "npm cache clean --force", delete the node_modules folder and package-lock.json file, then "npm install" again, but that didn't work for me.

 

Do anyone know how to resolve this? Appreciate any help. Thank you so much.

Screen Shot 2023-05-03 at 3.01.24 pm.png
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    You might have linting rules getting in the way, but I'm pretty sure that gives you a pretty clear error when you're just doing a build instead of a start or a push.

     

    Maybe you just need to update your PAC and reinitialize the project. Try that. Use pac install latest (or something like that) to update your install, then pac pcf init a new test project, np install, and build. If that works, then just copy over your customizations and build from this new 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

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 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard