cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Build Error in VS Code for Canvas Apps Component

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ScottDurow
Level 8

Re: Build Error in VS Code for Canvas Apps Component

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

 

 

View solution in original post

2 REPLIES 2
ScottDurow
Level 8

Re: Build Error in VS Code for Canvas Apps Component

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

 

 

View solution in original post

Re: Build Error in VS Code for Canvas Apps Component

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. 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 138 members 5,469 guests
Please welcome our newest community members: