Description
The FN016004_TS_property_pane_property_import spfx project upgrade rule suggest and empty import.
import { } from "@microsoft/sp-webpart-base";
import { IPropertyPaneField, PropertyPaneFieldType } from "@microsoft/sp-property-pane";
Steps to reproduce
- create a project using SPFx v1.6
- create a .ts file with the following import:
import {
IPropertyPaneField,
PropertyPaneFieldType
} from '@microsoft/sp-webpart-base';
- upgrade the project to v1.10
Expected result
import { IPropertyPaneField, PropertyPaneFieldType } from "@microsoft/sp-property-pane";
Actual result
import { } from "@microsoft/sp-webpart-base";
import { IPropertyPaneField, PropertyPaneFieldType } from "@microsoft/sp-property-pane";
Environment
CLI v2.9
Additional info
Another repro case is the following snippet:
import { IPropertyPaneCustomFieldProps } from '@microsoft/sp-webpart-base';
which becomes:
import { } from "@microsoft/sp-webpart-base";
import { IPropertyPaneCustomFieldProps, PropertyPaneCustomField } from "@microsoft/sp-property-pane";
Bugs:
Description
The
FN016004_TS_property_pane_property_importspfx project upgrade rule suggest and empty import.Steps to reproduce
Expected result
Actual result
Environment
CLI v2.9
Additional info
Another repro case is the following snippet:
which becomes:
Bugs:
PropertyPaneCustomFieldadded in the second case that's not used anywhere in code