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 was able to solve this by running
npm i -D typescript
msbuild /t:restore
msbuild /t:rebuild /restore /p:Configuration=Release
I solved the error by creating a brand new pcf project for it and it worked
Had the same issue today, seemed to be a TypeScript 5 issue. Also fixed by npm install --save-dev typescript@4
I had the same problem. I was missing typescript as a dev dependency.
"npm i -D typescript" fixed it for me.
I'm getting the same error since 17th of April. Any luck?
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
76
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1