score:1

i've managed to solve it without being 100% clear on the reason why but here is the fix:

yarn remove @material-ui/core @private/component-library
yarn add @material-ui/core @private/component-library

the issue was that there were two different versions of @material-ui/core in my app's package tree (one for the app itself, another within the dependencies of the component library). as a result, the makestyles executions within the app and the component library weren't sharing the same class name generator and thus weren't prevented from clashing.

hopefully this helps someone in future!


Related Query

More Query from same tag