Skip to content

ig upgrade-packages throws an error when it doesn't find any ignite-ui-cli.json #1663

@kdinev

Description

@kdinev

Ignite UI CLI Version

15.0.0

Framework

React

CLI Command

upgrade-packages

Node.js Version

22.20.0

Operating System

Windows

Package Manager

npm

Description

When I try to remove the trial watermark of the igniteui-react-grid in my project, by using my license and ig upgrade-packages I get an error,

Steps to Reproduce

  1. Generate a react project in an empty folder using an agent prompt.
  2. Ask the agent to add a IgrGrid.
  3. Upgrade the project to the licensed package using ig upgrade-packages

Actual Result

An error is thrown.

Expected Result

The references and package reference are updated.

Error Output / Logs

$ ig upgrade-packages
The upgrade-packages command threw error - TypeError
Message: Cannot read properties of undefined (reading 'framework')
Stack: TypeError: Cannot read properties of undefined (reading 'framework')
    at Object.<anonymous> (C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:39:46)
    at Generator.next (<anonymous>)
    at C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:4:12)
    at Object.upgrade (C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:37:16)
    at Object.<anonymous> (C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:33:28)
    at Generator.next (<anonymous>)
    at C:\Users\KDinev\AppData\Roaming\npm\node_modules\igniteui-cli\lib\commands\upgrade.js:8:71
    at new Promise (<anonymous>)

Additional Context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions