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 / 'ComponentFramework' i...
Power Apps
Answered

'ComponentFramework' is not defined.

(0) ShareShare
ReportReport
Posted on by 17

Hi I am trying to follow this tutorial:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/implementing-controls-using-typescript

I installed all the requirements and tried with Node 14 and node 12 but I am getting these errors:

 

> pcf-project@1.0.0 build C:\Projects\LinearInputControl
> pcf-scripts build

[4:07:06 PM] [build] Initializing...
[4:07:06 PM] [build] Validating manifest...
[4:07:06 PM] [build] Validating control...
[4:07:07 PM] [build] Generating manifest types...
[4:07:07 PM] [build] Generating design types...
[4:07:07 PM] [build] Compiling and bundling control...
[Webpack stats]:
Hash: 85e3b6d6b139276aae10
Version: webpack 4.42.1
Time: 1729ms
Built at: 08/31/2021 4:07:09 PM
Asset Size Chunks Chunk Names
bundle.js 6.97 KiB main [emitted] main
Entrypoint main = bundle.js
[./LinearInputControl/index.ts] 2.89 KiB {main} [built] [11 errors]

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 35:35-47
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(35,36)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 36:61-73
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(36,62)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 36:105-117
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(36,106)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 37:51-63
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(37,52)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 37:95-107
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(37,96)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 53:35-47
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(53,36)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 55:61-73
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(55,62)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 55:105-117
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(55,106)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 56:51-63
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(56,52)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 56:95-107
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(56,96)
TS2339: Property 'controlValue' does not exist on type 'IInputs'.

ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts
./LinearInputControl/index.ts 61:3-28
[tsl] ERROR in C:\Projects\LinearInputControl\LinearInputControl\index.ts(61,4)
TS2322: Type '{ controlValue: number; }' is not assignable to type 'IOutputs'.
Object literal may only specify known properties, and 'controlValue' does not exist in type 'IOutputs'.
[pcf-scripts] [Error] encountered unexpected error:
Error: An error occurred compiling or bundling the control.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pcf-project@1.0.0 build: `pcf-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pcf-project@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 

What could be the issue? Thanks

Categories:
I have the same question (0)
  • Verified answer
    x001nx Profile Picture
    17 on at

    So the solution is:

    1. The typescript installation is missing.
    2. And the first thing to do is to run npm run build 
  • Community Power Platform Member Profile Picture
    on at

    I'm getting the same error except it is 'Object literal may only specify known properties and 'controlValue' does not exist in type 'IOutputs'.  I did run npm build. Is there a known issue here or a release problem?

  • Community Power Platform Member Profile Picture
    on at

    Curious to see the answer. I do have the same issue trying to set up a component for a bot in my canvas app.

  • Community Power Platform Member Profile Picture
    on at

    RoloMagnus_0-1657671207448.png

    This is the screenshot of my error. Thank you in advance for any support!

  • Community Power Platform Member Profile Picture
    on at

    I'm having the same problem after downloading the repo: https://github.com/nijos/SmartGrid and trying to run it. Package.json doesn't exist and the compiler doesn't find ComponentFramework 

    image.png

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard