Skip to content

Why use SPFx 1.8 with TypeScript 2.7? #3618

Closed
@BigEaseGueldi

Description

@BigEaseGueldi

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

I was trying to use Fabric UI Icons and other components with SPFx 1.8 - without using the loadLegacyFabricCss flag.

Observed Behavior

Once you add something, e.g.
import { Icon } from 'office-ui-fabric-react/lib/Icon';
to any component, you will see a "good old friend" (frankly speaking there are "some" issues around this ;-)):

grafik

Steps to Reproduce

see above

So the question would be why you whould use TS 2.7, when you have to switch to 3.x to use Fabric UI properly. Are there any disadvantages when switching to TS 3.x?

Thanks
Dirk

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:fixed-next-dropIssue planned to be fixed in an upcoming release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions