web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Build Error in VS Code...
Power Apps
Answered

Build Error in VS Code for Canvas Apps Component

(0) ShareShare
ReportReport
Posted on by 421

I'm following this tutorial to learn how to create a component for Canvas Apps. 

When I run "npm run build" I have an error that I don't know how to resolve:

> pcf-project@1.0.0 build C:\Users\Hilary Stoupa\Documents\PowerAppsComponents\LinearComponent
> pcf-scripts build

[16:35:38] [build] Initializing...
[16:35:38] [build] Validating manifest...
[16:35:38] [build] Validating control...
[16:35:38] [build] Generating manifest types...
[16:35:38] [build] Compiling and bundling control...
ApplicationInsights:CorrelationIdManager [ { Error: getaddrinfo ENOENT dc.services.visualstudio.com dc.services.visualstudio.com:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'getaddrinfo',
hostname: 'dc.services.visualstudio.com',
host: 'dc.services.visualstudio.com',
port: 443 } ]
[Webpack stats]:
Hash: 617ab22942026f40f4a9
Version: webpack 4.28.4
Time: 1768ms
Built at: 10/14/2019 4:35:40 PM
Asset Size Chunks Chunk Names
bundle.js 8.69 KiB main [emitted] main
Entrypoint main = bundle.js
[./TSLinearInputComponent/index.ts] 4.54 KiB {main} [built]
[16:35:40] [build] Generating build outputs...
[16:35:40] [build] Succeeded

I thought perhaps it was because the path had a space in it - but I tried again in a new location and had the same issue. I also was wondering if my Pi-Hole was causing the issue, but I whitelisted dc.services.visualstudio.com and still have the issue. Any troubleshooting suggestions?

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    1,039 on at

    It looks like your build has succeeded - but this stats that are being collected are causing an issue.

     

    Try turning this off using 'pac telemetry disable' (https://docs.microsoft.com/en-us/powerapps/developer/component-framework/get-powerapps-cli#microsoft-powerapps-cli-telemetry)

     

     

  • hilary_stoupa Profile Picture
    421 on at

    Thank you so much for your reply, @ScottDurow - that did the trick and I appreciate the link as well. I could see the build was succeeding but the error with the telemetry was blocking me from being able to push the compenent to my environment. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard