web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard