Topic: Angular App [has no exported member 'BaseChartDirective'] Error when building prod

ak.leimrey pro asked 5 years ago


Basically everywhere where I use the BaseChartDirective this error is being triggered when I'm doing a productive build. To be more precise...

ERROR in <component.ts>: error TS2305: Module '"/my-app/src/app/typescripts/pro/index"' has no exported member 'BaseChartDirective'

src/app/app.module.ts(6,10): error TS2305: Module '"/my-app/src/app/typescripts/pro/index"' has no exported member 'MDBBootstrapModule'

I can only circumvent this by declaring the type as "any", which is rather iffy at best.

EDIT: I'm using typescript 2.72 in the project and Angular 5


Damian Gemza staff commented 5 years ago

Dear ak.leimrey, Could you please check, if this problem exists in the latest version of MDB Angular? The 6.2.2? Please let me know. Best Regards, Damian

ak.leimrey pro commented 5 years ago

Hey, Damian. I just tried it out with a new project. Seems it's not a problem with later iterations (6.2.2 to be exact) of MDB for some reason. At least, I could do a productive build while importing the BaseChartDirective. Seems I will have to migrate the project eventually, even though it's not what I would like to do with it, so far into its development. But thanks for the super fast response.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags