Topic: export LightBoxModule was not found in ng-uikit-pro-standard

ewgiddings free asked 3 years ago


Expected behavior

mdb-image-modal displays on the page.

Actual behavior

This is not working for me: https://mdbootstrap.com/docs/angular/advanced/lightbox/

I attempt to use mdb-image-modal exactly like in the documents and nothing shows. I also attempt to import from ng-uikit-pro-standard and I get this error:

export LightBoxModule was not found in ng-uikit-pro-standard

What is the status of this component? It does not display and attempting to import it says it does not exist. I am on version 10.1.1 using Angular.

Resources (screenshots, code snippets etc.)


Arkadiusz Idzikowski staff commented 3 years ago

I double-checked that and it looks like the export is added correctly. Please try to remove node_modules folder and package-lock.json file and reinstall your dependencies with npm install.


ewgiddings free commented 3 years ago

The steps you said did not work. I deleted package-lock. Removed node_modules. Did an npm install. I then try to put import { LightBoxModule } from 'ng-uikit-pro-standard'; in app.module.ts like import { LightBoxModule } from 'ng-uikit-pro-standard'; and it says that it has no exported member of that name. I used the ng-ui-kit-pro-standard-10.1.1.tgz to install this library because I no longer have access to the Gitlab. I also have the screenfull project installed.


Arkadiusz Idzikowski staff commented 3 years ago

Do you use MDB Angular Pro or MDB Angular Admin Template Pro? They use a similar components library under the hood but Admin Template does not contain Lightbox component.

Are there any problems when you try to import other MDB modules?


ewgiddings free commented 3 years ago

When I go to my orders I download the only thing available to me (because at some point I lost access to the Gitlab repo). That download gives me the MDB-Angular-Small-Bundle-10.1.1 which inside it only has the MDB-Angular-Admin-Pro-10.1.1 and the MDB-Angular-Pro-Basic-10.1.1 and I used the tgz from the Admin Pro folder.

Are you saying the MDB-Angular-Pro-Basic has the component I need? I used to have it when I bought this in probably 2017. ISo when I was using the Gitlab with Angular 7 it was there. Now it isn't.

No other errors are present. I started using the Carousel for now but it would be nice to figure out how I can get Lightbox back.

Thanks!


Arkadiusz Idzikowski staff commented 3 years ago

Please install MDB using .tgz from the MDB-Angular-Pro-Basic-10.1.1 and Lightbox should work correctly.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: Surface Pro
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes