Hello ,
Trying to build new pcf control and getting below error on build and test . Please suggest how to fix.
i have installed node.js 12.6.0.
Hi @dkrish2020 ,
Currently, I could not reproduce your issue on my side. Have you taken a try with the pac pcf init command to create your PCF control project?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
If you have installed PowerApps CLI Tool in your PC, please consider open "Developer Command Prompt for VS 2017" window (If you have installed Visual Studio 2017 on your PC), then run the following command to create your PCF control project:
npm start watch
In addition, before you execute above command, please run the following command to build your project:
npm run build
Please check the following sample project for more details about initializing a PCF project:
If you just want to create a PCF control through XRM Tool, please check and see if the following article would help in your scenario:
Best regards,
Hello,
I have installed power apps CLI and tried with below command. But still getting same error. Pls let me know if anything missing
npm i -g
Hi @dkrish2020 ,
Have you installed the 'pcf-script' package within your PC?
Do you want to create a PowerApps Component Framework Control on your side?
Further, have you installed Microsoft Power Apps CLI tool in your PC?
If you want to create a PowerApps Component Framework control on your side, Microsoft PowerApps CLI Tool may be your Choice. Please check and see if the following article would help in your scenario:
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/get-powerapps-cli
If you want to create PCF control using the 'pcf-scripts' command directly, please check the solution within the following article:
https://github.com/MicrosoftDocs/powerapps-docs/issues/756
Please run the following command:
npm i -g
to install devDependencies
globally firstly, then run your 'pcf-script' command again.
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1