Skip to content

react-card has dependencies on v8, blocks migration to new DX  #19050

@tringakrasniqi

Description

@tringakrasniqi

Actual behavior:

react-card has dependencies on v8 which are a blocking issue for migration to the new DX, PR: #19036 .

In particular, the hook useFocusRects(state.ref); is used on all the components that comes from a v8 depencency, @fluentui/utilities.

Also, tests.js config file uses setIconOptions that come from @fluentui/react/lib/Styling

// Suppress icon warnings.
setIconOptions({
  disableWarnings: true,
});

that results in this error:

 /home/tringakrasniqi/workspace/fluentui-master/packages/react/lib/Styling.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import './version';
                                                                                             ^^^^^^

    SyntaxError: Cannot use import statement outside a module

Expected behavior:

No dependencies on v8 and tests.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions