Module not found: Error: Can't resolve '@microsoft/load-themed-styles'
Bug Report
- Package version(s): 6.52.0
- Browser and OS versions: Windows 10
Describe the issue:
I have just update to latest version and run into this issue
ERROR in ./~/@uifabric/styling/lib/styles/theme.js
Module not found: Error: Can't resolve '@microsoft/load-themed-styles' in 'D:\SWGLawyer\KolektoHuur\Kolekto.Huur.CreditWeb\node_modules\@uifabric\styling\lib\styles'
@ ./~/@uifabric/styling/lib/styles/theme.js 6:0-77
@ ./~/@uifabric/styling/lib/styles/index.js
@ ./~/@uifabric/styling/lib/index.js
@ ./~/@uifabric/icons/lib/fabric-icons.js
@ ./~/@uifabric/icons/lib/index.js
@ ./ClientApp/boot-client.tsx
ERROR in ./~/office-ui-fabric-react/lib/components/Panel/Panel.scss.js
Module not found: Error: Can't resolve '@microsoft/load-themed-styles' in 'D:\SWGLawyer\KolektoHuur\Kolekto.Huur.CreditWeb\node_modules\office-ui-fabric-react\lib\components\Panel'
@ ./~/office-ui-fabric-react/lib/components/Panel/Panel.scss.js 2:0-59
@ ./~/office-ui-fabric-react/lib/components/Panel/Panel.js
@ ./~/office-ui-fabric-react/lib/components/Panel/index.js
@ ./~/office-ui-fabric-react/lib/Panel.js
@ ./ClientApp/components/topNavigation/appBar.tsx
@ ./ClientApp/components/topNavigation/topBar.tsx
@ ./ClientApp/app.tsx
@ ./ClientApp/routes.tsx
@ ./ClientApp/boot-client.tsx
I have tried to install @microsoft/load-themed-styles but it doesn't work. Are there any one have this issue before and how can you fix it. I saw few reports #3812 #3818.
I am experiencing this as well.
I added "@microsoft/load-themed-styles": "1.7.79" to my package.json and it seemed to resolve the issue.
@austin-best there is a problem with release of @microsoft/load-themed-styles 1.7.80. It is fixed in version 1.7.81. The full story is here: #782
the npm folder does not contain a lib or a lib-amd folder! So you have to run the following commanf...
npm install --no-save @microsoft/load-themed-style
Still got this issue! :) It was fixed some time ago, but now its there again :(
Fixed in 1.7.81, broken again in 1.7.82, and fixed again in 1.7.83. 😊
I believe this is the cause: https://github.com/Microsoft/web-build-tools/issues/796 - load-themed-styles is published by another team within MSFT; and it seems to have been addressed there.