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 / My first PCF giving Co...
Power Apps
Unanswered

My first PCF giving ControlManifest.xml Not Found error

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm beginner and looking for some advice for what's wrong with my first PCF. I get the tutorial from Youtube : https://www.youtube.com/watch?v=fNCEc3CDCrI

I am using mac so i had to do some changes 

 

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}`]);

 

because 

 

pac pcf init

 

creates project for windows.

then i run these commands 

 

npm run build
npm run start

 

and server runs on http://127.0.0.1:8181/

but it gives me this error on browser

Screenshot 2021-08-09 at 4.46.45 PM.png

the code is exact same from the video 

 

//1) index.ts
import {IInputs, IOutputs} from "./generated/ManifestTypes";
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { ReactComp, IReactCompProps } from './ReactComp';

export class MyReactComp implements ComponentFramework.StandardControl<IInputs, IOutputs> {
 private theContainer: HTMLDivElement;
 private props: IReactCompProps = {
 myvalue: ""
 }
 constructor()
 {
 }
 public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged: () => void, state: ComponentFramework.Dictionary, container:HTMLDivElement)
 {
 this.theContainer = container;
 this.props.myvalue = context.parameters.sampleProperty.raw;
 }
 public updateView(context: ComponentFramework.Context<IInputs>): void
 {
 this.props.myvalue = context.parameters.sampleProperty.raw;
 ReactDOM.render(
 React.createElement(
 ReactComp, this.props
 ), 
 this.theContainer
 );
 }
 public getOutputs(): IOutputs
 {
 return {};
 }
 public destroy(): void
 {
 }
}

 

 

//2) ReactComp.tsx
import * as React from "react";
import { Checkbox } from "office-ui-fabric-react/lib/Checkbox";
import { Dropdown, IDropdownOption } from "office-ui-fabric-react/lib/Dropdown";
import { Facepile, IFacepilePersona, IFacepileProps, OverflowButtonType } from "office-ui-fabric-react/lib/Facepile";
import { PersonaSize } from "office-ui-fabric-react/lib/Persona";
import { Slider } from "office-ui-fabric-react/lib/Slider";

import { setIconOptions } from "office-ui-fabric-react/lib/Styling";

// Suppress office UI fabric icon warnings.
setIconOptions({
 disableWarnings: true,
});

export interface IReactCompProps {
 myvalue: string | null
}

export interface IReactCompState extends React.ComponentState, IReactCompProps {
 
}

export class ReactComp extends React.Component<IReactCompProps, IReactCompState> {
 constructor(props: IReactCompProps) {
 super(props);

 this.state = {
 myvalue:"Hello World"
 };
 }

 public componentWillReceiveProps(newProps: IReactCompProps): void {
 this.setState(newProps);
 }

 public render(): JSX.Element {
 return (
 <div>
 {this.state.myvalue} 
 </div>
 );
 } 
}

 

Is there something I missed ? What could be the problem ?

 

Please help,

Thanks.

I have the same question (0)
  • shadowfox Profile Picture
    41 on at

    Without the pac init ability - I don't think you'll be able to build the control properly as that is what creates the manifest file. When I was doing CRM dev work with a Mac - I had to run a VM with Windows on it so I had the ability to use all the tools out there - like XRMToolbox for example. It was the best solution I found to give me everything I needed for Dynamics Dev work while on an iMac. 

  • Arjan ter Heegde Profile Picture
    32 on at

    I had the exact same problem, the fix is to remove the DS_Store folder:
    find /Users/xxx/Documents/PCF-QuoteGenerator -name ".DS_Store" -delete

  • maqsood1ahmed12 Profile Picture
    5 on at

    Thanks

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard