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 / unable to build any PC...
Power Apps
Unanswered

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'

I have the same question (0)
  • Aya_Metwally0 Profile Picture
    3 on at

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

  • gunterh1 Profile Picture
    4 on at

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

  • Phil_Cole Profile Picture
    133 on at

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

     

  • PowerApps123 Profile Picture
    2 on at

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

     

  • Verified answer
    SescoDev Profile Picture
    31 on at

    I was able to solve this by running 

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

     

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