Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

(0) ShareShare
ReportReport
Posted on by 2

Unable to build any PCF controls on my machine , 

getting the error [11:22:28] [build] Initializing...
[11:22:28] [build] Validating manifest...
[11:22:28] [build] Validating control...
[11:22:29] [build] Running ESLint...
[11:22:29] [build] Generating manifest types...
[pcf-scripts] [Error] encountered unexpected error:
TypeError: Cannot create property 'pos' on string 'IInputs'

  • Verified answer
    SescoDev Profile Picture
    31 on at
    Re: unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

    I was able to solve this by running 

    npm i -D typescript
    msbuild /t:restore
    msbuild /t:rebuild /restore /p:Configuration=Release

     

  • PowerApps123 Profile Picture
    2 on at
    Re: unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

    I solved the error by creating a brand new pcf project for it and it worked

     

  • Phil_Cole Profile Picture
    133 on at
    Re: unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

    Had the same issue today, seemed to be a TypeScript 5 issue.  Also fixed by npm install --save-dev typescript@4   

     

  • gunterh1 Profile Picture
    4 on at
    Re: unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

    I had the same problem. I was missing typescript as a dev dependency. 
    "npm i -D typescript" fixed it for me.

  • Aya_Metwally0 Profile Picture
    3 on at
    Re: unable to build any PCF control project getting the error [pcf-scripts] [Error] encountered unexpected error: TypeError: Cannot create property 'pos' on string 'IInputs'

    I'm getting the same error since 17th of April. Any luck?

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 76 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard