Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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.
 

  • Kristoffer88 Profile Picture
    87 on at
    Re: Compiling PCF on Apple M1

    Hi.

     

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

     

    Kristoffer

     

  • Hemant Gaur Profile Picture
    on at
    Re: Compiling PCF on Apple M1

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

     

    thanks,

    Hemant 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard