This repository has the start of a TypeScript app that already includes the Power Platform SDK. Later in EAP we'll add guidance to that allows you to start from scratch without using this base app.
git clone https://github.com/microsoft/PowerAppsCodeApps.git
cd PowerAppsCodeAppspac auth create --environment {environment id}cd samples/HelloWorld
npm install
pac code initnpm run dev | pac code runnpm run build | pac code pushIf successful, this command should return a Power Apps URL to run the app.
Optionally, you can navigate to https://make.powerapps.com to see the app in the Maker Portal. You can play, share, or see details from there.
Congratulations! You have successfully pushed your first code app!
[!NOTE] If you get stuck on the “fetching your app” loading screen or see an “App timed out” error screen, double check:
- that you ran npm run build
- there are no issues in PowerProvider.tsx