Skip to content

bug: Cannot read properties of undefined (reading 'getText') #31

@brodenbrett

Description

@brodenbrett

Prerequisites

Codemod version

0.0.7

Current Behavior

An error occurs when running the utility:

┌ Ionic Angular Standalone Codemods ┌ This utility will migrate your Ionic Angular project to use the new standalone components from Ionic Framework v7.5.0. │ ▲ -------------------------------------------------- │ ▲ ⚠️ This utility is experimental. Always review the changes made before committing them to your project. ⚠️ │ ▲ For manual migration, see the guide at: https://www.ionicframework.com/docs/angular/build-options#migrating-from-modules-to-standalone │ ▲ -------------------------------------------------- │ ◇ Would you like to run this migration as a dry run? No changes will be written to your project. │ Yes │ ◇ Please enter the path to your project (default is the current working directory): │ /Users/<myusername>/Apps/<projectfolder> │ ■ An error occurred during the migration. │ ■ Cannot read properties of undefined (reading 'getText') │ └ If you encounter any issues with this migration utility, please report them at: https://github.com/ionic-team/ionic-angular-standalone-codemods/issues 

Expected Behavior

The utility should run.

Steps to Reproduce

  1. npx @ionic/angular-standalone-codemods in terminal at the package folder
  2. Hit 'Yes'
  3. Use current directory

Code Reproduction URL

No response

Additional Information

Ionic Version: 7.5.6
Angular Version: 17.0.4
Typescript Version: 5.2.2
Node Version: 20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: buga confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions