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 / 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)
  • 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. 

  • 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)

     

     

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
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard