cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
krombipils
Level: Powered On

PAC: npm start exited with code 1

Hi,

 

I'm trying to understand PCF and I'm following the 'Create your first component' tutorial. npm run build completes without errors, but I cannot debug my component. npm start complains about 'The specified codePath 'out\controls\TSLinearInputComponent' does not exist.'

 

pac.png

 

But actually there is a out\controls\TSLinearInputComponent directory containing bundle.js and ControlManifest.xml.

Something wrong with my path environment settings? I'm developing on windows...

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
krombipils
Level: Powered On

Re: PAC: npm start exited with code 1

Problem is solved. I was using a solution from https://stackoverflow.com/a/4896002/2075207 to setup the start directory for cmd.exe (I set this up a long time ago). Unfortunately this breaks node's process.cwd() and therefore the right directory wasn't found.

View solution in original post

1 REPLY 1
krombipils
Level: Powered On

Re: PAC: npm start exited with code 1

Problem is solved. I was using a solution from https://stackoverflow.com/a/4896002/2075207 to setup the start directory for cmd.exe (I set this up a long time ago). Unfortunately this breaks node's process.cwd() and therefore the right directory wasn't found.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (10,519)