Topic: ProgressSpinnerModule not exported in public_api.js

FloppyNotFound free asked 5 years ago


Expected behavior

I am using the MDBootstrap Angular Pro-Version 8.0.0.As a developer, I want to import the MDBootstrap-Modules separately from 'ng-uikit-pro-standard', instead of importing the whole MDBootstrapModulePro. Therefore, I expect the ProgressSpinnerModule to appear in the public_api.js of MDBootstraps npm-package.

Actual behavior

Importing of modules separately works fine, except for the ProgressSpinnerModule. It seems like the exporting of this module has been forgotten, so I can only use it, if I import the whole MDBootstrapModulePro, which I do not want for app size reasons.

Resources (screenshots, code snippets etc.)

import { ProgressSpinnerModule } from 'ng-uikit-pro-standard';

gives me the TS-error:

Module '"ROOTPATH/node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard"' has no exported member 'ProgressSpinnerModule'.ts(2305)


Damian Gemza staff answered 5 years ago


Dear @FloppyNotFound

Instead of importing ProgressSpinnerModule please import MdProgressSpinnerModule in your app.module.ts file, and it should work fine.

Best Regards,

Damian


FloppyNotFound free commented 5 years ago

Dear @Damian Gemza, thanks for your really fast response. You are right, the name of the module is indeed MdProgressSpinnerModule. Unfortunately, this doesn't change the fact, my project still doesn't compile.

I can find in the ng-uikit-pro-standard\public_api.d.ts: export * from './lib/pro/progressbars/index';

which seems to export also ProgressSpinnerComponent, but when I import ProgressbarModule in my app.module.ts, I still get the error, that the component is not found:

ERROR in : 'mdb-spinner' is not a known element: 1. If 'mdb-spinner' is an Angular component, then verify that it is part of this module. 2. If 'mdb-spinner' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" [ERROR ->]

My guess is, that when updating to MDB8, ProgressBar and Spinner were put together in a module, but an export has been forgotten? Is MdProgressSpinnerModule deprecated and we should only use ProgressbarModule instead, which also should export the spinner (but actually doesn't)?


Damian Gemza staff commented 5 years ago

Dear @FloppyNotFound

Could you please try to use the ProgressBars.forRoot() instead of MdProgressSpinnerModule, and check if your problem is resolved? I'm able to use mdb-spinner, mdb-progress while importing ProgressBars module in my app.module.ts file.


FloppyNotFound free commented 5 years ago

Dear @Damian Gemza,

this indeed does work, thank you very much. On the other hand, according to the comments in the index.d.ts of ProgressBars, the Module has been deprecated. What should we use instead?


Arkadiusz Idzikowski staff commented 5 years ago

That's something we need to fix on our end, for now please use ProgressBars module.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: every
  • Browser: every
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No