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 / Compiling PCF on Apple M1
Power Apps
Unanswered

Compiling PCF on Apple M1

(0) ShareShare
ReportReport
Posted on by 87

Hi.

 

Just got a MacBook Air M1 yesterday, and wanted to see if I could get develop PCF Components on it.

 

When starting npm start watch, it threw some errors.

 

First error: Path not accepting undefined.

 

This was due to process.env.LOCALAPPDATA is not present on MAC.

 

in node_modules/pcf-scripts/taskRunner.js i added this after line 13: (I could not get this working in a .env file)

process.env.LOCALAPPDATA = process.env.HOME

 

after this, it still threw a error, this was a little harder to find, but managed to locate a line in 

in node_modules/pcf-scripts/tasks/startTask.js line 34

 

const pcfStartCmd = child_process_1.spawn('cmd', ['/c', `pcf-start ${this._watchOn ? '--watch' : ''} --codePath ${outputDir}`]);

this has to be changed to:

const pcfStartCmd = child_process_1.spawn('pcf-start', [`${this._watchOn ? '--watch' : ''} --codePath ${outputDir}`]);

 
 
After this, it worked (test harness still not working)
I normally use Fiddler, so it is not a problem for me.
 
Fiddler Everywhere is supported on the M1 Chip, so I added the bundle.js to autoresponder, and it works.
 
There is massive performance boost on compile when changing a file compared to my Lenovo P15V.
 

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    PAC CLI is only supported on the windows platform currently.  Please use ideas forum to report and vote for the feature ideas. 

     

    thanks,

    Hemant 

  • Kristoffer88 Profile Picture
    87 on at

    Hi.

     

    This was just a tip if anyone wanted to develop on a mac.

     

    Kristoffer

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard