I'm getting a 'has no exported member ConfigurableFocusTrapFactory' error


Topic: I'm getting a 'has no exported member ConfigurableFocusTrapFactory' error

Taunt digital free asked 2 years ago

**Expected behavior** ng build --prod should produce no errors

**Actual behavior**

build process halts with ConfigurableFocusTrapFactory error

**Resources (screenshots, code snippets etc.)**

ERROR in node_modules/ng-uikit-pro-standard/lib/free/modals/modal.directive.d.ts:6:10 - error TS2305: Module '"../../../../@angular/cdk/a11y"' has no exported member 'ConfigurableFocusTrapFactory'.


Taunt digital free answered 2 years ago

My angular packages (and material and cdk in specific) needed updating, this seems to have fixed that.


Arkadiusz Idzikowski staff commented 2 years ago

Is the problem resolved?


Taunt digital free commented 2 years ago

Yes, this has resolved after updating angular's cdk/material. Thank you


Alwin Augustin free commented 2 years ago

I am still getting the error. I am using cdk 9.0.0. Which version I need to use ?


Alwin Augustin free commented 2 years ago

Can you please let me know to which version you have updated ? my packagejson has

"@angular/cdk": "^9.0.0", and "@angular/material": "^9.0.0",


Taunt digital free commented 2 years ago

This is what I've got in my package.json and am no longer getting the fault, but I don't know if it was just a plain upgrade of everything in the end or a case of a specific setup, I think it was the latter. "@angular/cdk": "^8.2.3", "@angular/material": "^8.2.3" "angular-bootstrap-md": "^7.4.1",


Arkadiusz Idzikowski staff commented 2 years ago

@Alwin Augustin please check the exact version of the CDK that you are using. To do that go to node_modules/@angular/cdk/package.json and find the version parameter.

In case of any further problems please try to reinstall your dependencies, remove node_modules folder and package-lock.json file and run npm install command again.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 9.3.1
  • Device: All
  • Browser: N/A
  • OS: mac/ubuntu
  • Provided sample code: No
  • Provided link: No