Skip to content

Can't use loadLegacyFabricCss in SPFX 1.8 #3612

Closed
@araLT

Description

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

According to SPFX 1.8 documentation, it is possible to add "loadLegacyFabricCss": true to web part manifest file in order to force old fabric CSS to be loaded in the page.

Observed Behavior

After adding the mentioned property ("loadLegacyFabricCss": true) to web part manifest file, execution of commands gulp serve or gulp bundle failed and after webpacking the following error message is displayed:

[15:29:01] Error - [write-manifests] Manifest validation error (./src/webparts/helloWorld/HelloWorldWebPart.manifest.json):
(#/) Data does not match any schemas from 'oneOf'
(#/) Missing required property: description
(#/) Missing required property: extensionType
(#/componentType) No enum match for: WebPart
(#/) Additional properties not allowed: loadLegacyFabricCss
(#/) Missing required property: items
(#/) Missing required property: rootComponentId

Steps to Reproduce

  1. Create new spfx 1.8 project containing web part.

  2. Add "loadLegacyFabricCss": true to web part manifest file. Here is Example of such manifest file:
    image

  3. Run command gulp serve or gulp bundle and you will get the mentioned error:
    image

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