Open Shadow5084 opened 11 months ago
The _MatMenuBase
class import should be replaced with MatMenu
to fix this. It's a very simple fix.
_MatMenuBase
usage in tutorial-trigger.directive.ts
.
@amir-leshem-broadcom
So, the only solution is to revert to Angular Material 16 or delete this library from our code? (Here the guy must maintain his library up to date if want we use it...)
You can also try to set skipLibCheck in tsconfig or just fork the library and fix the broken type import in your version.
For now I manually updated node_modules/bdc-walkthrough/fesm2020/bdc-walkthrough.mjs
(find/replace _MatMenuBase -> MatMenu). It works until next folder cleaning.
@davideas you can also use patch-package to make your npm "monkey patch" permanent.
Fixed in v1.2.3
.
When using Angular Material 17 I get the following error message:
./node_modules/bdc-walkthrough/fesm2020/bdc-walkthrough.mjs:584:26-38 - Error: export '_MatMenuBase' (imported as '_MatMenuBase') was not found in '@angular/material/menu' (possible exports: MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER, MENU_PANEL_TOP_PADDING, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, fadeInItems, matMenuAnimations, transformMenu)
./node_modules/bdc-walkthrough/fesm2020/bdc-walkthrough.mjs:612:26-38 - Error: export '_MatMenuBase' (imported as '_MatMenuBase') was not found in '@angular/material/menu' (possible exports: MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER, MENU_PANEL_TOP_PADDING, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, fadeInItems, matMenuAnimations, transformMenu)