Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I tried to open a dialog, the following exception occurred. #3251

Open
LetAmericaGreatAgain opened this issue Apr 23, 2024 · 1 comment

Comments

@LetAmericaGreatAgain
Copy link

ERROR Error: [NbOverlayContainerAdapter]: Layout not found.
When using Nebular '' is required and should wrap other nebular components.
at throwLayoutNotFoundError (nebular-theme.mjs:1122:11)
at NbOverlayContainerAdapter.checkContainer (nebular-theme.mjs:1149:13)
at NbOverlayContainerAdapter._createContainer (nebular-theme.mjs:1141:14)
at NbOverlayContainerAdapter.getContainerElement (overlay.mjs:754:18)
at NbOverlay._createHostElement (overlay.mjs:2561:32)
at NbOverlay.create (overlay.mjs:2528:27)
at NbOverlayService.create (nebular-theme.mjs:1570:41)
at NbDialogService.createOverlay (nebular-theme.mjs:19445:29)
at NbDialogService.open (nebular-theme.mjs:19435:33)

@roboter
Copy link

roboter commented Oct 3, 2024

"@nebular/theme": "^9.0.1",

When using Nebular '<nb-layout>' is required and should wrap other nebular components.

Layout have it and everything wrapped in it
image

Fixed by adding .forRoot()

NbToastrModule.forRoot(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants