Power Apps Client Library for Code Apps v1.0: Complete Migration Guide

Power Apps Client Library for Code Apps v1.0: Complete Migration Guide

As Power Apps code apps approach general availability, Microsoft has released significant improvements to the Power Apps client library for code apps — and v1.0 brings breaking changes you need to know about. Whether you're building enterprise solutions or extending existing apps, this guide walks you through everything required to migrate smoothly to v1.0 and future-proof your code apps before GA. If you're new to the Power Platform ecosystem, explore our Power Platform development services to see how we can help.

What Is the Power Apps Client Library for Code Apps?

The Power Apps client library (@microsoft/power-apps) is the official npm package that enables developers to build code-first custom components and apps within the Power Apps ecosystem. As the platform matures toward general availability, v1.0 introduces a more stable, standardized API surface — replacing several preview-era patterns that are now deprecated.

Why Migrate to v1.0?

Prerequisites Before You Begin

Before starting the migration, ensure you have the following in place:

Step-by-Step Migration to v1.0

Step 1: Update the Package

Start by updating the @microsoft/power-apps package to v1.0 in your project:

npm install @microsoft/power-apps@1.0 --save

After installing, run a full build to identify breaking changes surfaced by the TypeScript compiler:

npm run build

Step 2: Review Breaking API Changes

v1.0 introduces several breaking changes from the preview library. Key areas to review include:

Step 3: Update Your Manifest

The code app manifest (ControlManifest.Input.xml) may require updates to reflect new schema requirements introduced in v1.0. Validate your manifest using:

pac solution check

Step 4: Test in a Development Environment

Never migrate directly in a production environment. Use a dedicated sandbox or development environment to validate:

Need help setting up isolated Power Platform environments? Our consulting team can assist with environment strategy and governance.

Step 5: Package and Deploy

Once validated, package your updated solution and deploy to your target environment:

pac solution pack --zipfile solution.zip
pac solution import --path solution.zip

Common Migration Issues and Fixes

Issue: TypeScript Errors After Upgrade

If you encounter TypeScript errors after upgrading, check that you're referencing the correct updated type imports. Many preview types have been renamed in v1.0. Consult the official changelog on the npm package page for a full mapping.

Issue: Context Properties Returning Undefined

If previously working context properties now return undefined, the property may have been moved to a nested namespace in v1.0. Review the updated API reference documentation for the new property paths.

Issue: Build Succeeds but App Doesn't Load

This is often caused by a mismatch between the deployed solution version and the runtime environment version. Ensure your Power Apps environment is updated to support v1.0 code apps and that the correct feature flags are enabled in the admin center.

Best Practices for Code App Development Post-Migration

Need Expert Help with Your Migration?

Migrating to v1.0 can surface complex issues in large-scale code app projects. Our certified Power Platform specialists at CRMONCE have extensive experience with Dynamics 365 implementations and Power Platform development, and can guide your team through the migration with minimal disruption.

Ready to Migrate Your Code Apps to v1.0?

Don't let breaking changes slow down your Power Platform projects. Contact our expert team today for a free migration assessment and let us help you get to General Availability-ready, fast.

Book a Free Migration Assessment

Or explore our full range of Power Platform services to see how CRMONCE can accelerate your digital transformation.