TypeError being thrown when navigating to Roles

The problem is with dependence: ‘match-sorter’, this dependency has a default export when installed with yarn, but when installed with NPM it has no default export, so it breaks when sorting in the role page in Strapi.

Path: /node_modules/match-sorter/dist/match-sorter.cjs.js

MatchSorter with NPM:
exports.matchSorter = matchSorter;

MatchSorter with YARN:
exports.default = matchSorter;

the import on the file: node_modules/@strapi/strapi/admin/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js

import matchSorter from 'match-sorter';

As a default import and that is the problem. For some reason, admin, helper-plugin, plugin-content-type-builders, and plugin-users-permissions on their package.json have match-sorter 4.0.2 but NPM installs “version”: “6.3.1”, and YARN “version”: “4.2.1”,