question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start with Microsoft Learn sample

See original GitHub issue

Describe the bug

Unable to use with the MSLearn sample.

To Reproduce Steps to reproduce the behavior:

git clone https://github.com/MicrosoftDocs/mslearn-staticwebapp-api.git
cd mslearn-staticwebapp-api/
cd react-app/
npm i
npm run build
cd ..

Can’t find the API:

swa --app-location react-app/build --api-location api-starter --api-prefix api
WARNING: SWA configuration not found.
>> detected runtime: unknown
[auth] Auth server listening on http://127.0.0.1:4242
[ api] No API found. Skipping.
[ app] Starting up http-server, serving /Users/antchu/source/temp/mslearn-staticwebapp-api/
[ app] Available on:
[ app]   http://127.0.0.1:4200
[ app]   http://192.168.187.204:4200
[ app]   http://192.168.187.218:4200
[ app] Unhandled requests will be served from: http://0.0.0.0:80/?
[ app] Hit CTRL-C to stop the server
[ api] ([ -d '/Users/antchu/source/temp/mslearn-staticwebapp-api/api' ] && (cd /Users/antchu/source/temp/mslearn-staticwebapp-api/api; func start --cors *)) || echo 'No API found. Skipping.' exited with code 0
[ swa] >> SWA listening on 0.0.0.0:80

Desktop (please complete the following information):

  • OS: macOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
manekinekkocommented, Mar 1, 2021

@anthonychu this issue should be fixed in main . Feel free to close it.

1reaction
johnpapacommented, Jan 20, 2021

@manekinekko perhaps just choose a port that is not one of the Vue, React, or Angular ones. Any port should be fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Microsoft Learn
1. Open the Console in your browser, which is normally able to opened by pressing F12. · 2. In the Console window, retry...
Read more >
Microsoft Learn frequently asked questions (FAQs)
Microsoft Learn training is completely free and available to anyone who has an interest to learn about Microsoft products. What types of content ......
Read more >
Certification support - Microsoft Learn
Contact support. Area of support, How to contact us. Microsoft Certification exams and Microsoft Certifications, Your question may already be ...
Read more >
Unable to start Access - Office | Microsoft Learn
Fixes an issue in which you can't launch Access because There is a permissions issue in the registry.
Read more >
Frequently asked questions | Microsoft Learn
Yes. We have added 5 minutes to our exams to allow for unscheduled breaks that do not need to be requested in advance....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found