Skip to content

Bug report: the spfx project upgrade command returns badly formatted text #3060

Description

@martinlingstuyl

Description

When running the spfx project upgrade command, the returned text is not formatted in a helpful way.

This probably has to do with the default output type being json. If I run the command with --output text the text is formatted fine.

Steps to reproduce

Run spfx project upgrade on a project that needs an upgrade.

Expected results

The expected result would be helpfully formatted text, like:

image

Actual results

The actual result is it will show the upgrade lines with all kinds of new line characters and escape characters:

image

Diagnostics

No response

CLI for Microsoft 365 version

4.4.0

nodejs version

14.18,1

Operating system (environment)

Windows, Linux

Shell

PowerShell, bash

cli doctor

No response

Additional Info

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions