question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error customizing UI components for auth module

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

I have followed the steps to change the UI components and im getting an error because “router-outlet” is not a know element. It seems that you need to import the RouterModule inside the ThemeModule.

Current behavior:

App doesnt load and there’s an error in the console

Expected behavior:

App Load correctly loading the new components

Steps to reproduce:

1 - Copy the resources from auth components 2 - Rename classes and selectors for new components 3 - Import the new components inside theme.module 4- Change the routes inside app-routing.module.ts with the new components 5 - Transpile the app 6 - Trying to load main page 7 - App doesnt load and there’s a bug in console `‘router-outlet’ is not a known element:

  1. If ‘router-outlet’ is an Angular component, then verify that it is part of this module.
  2. If ‘router-outlet’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. ("rd-body> <div class="flex-centered col-xl-4 col-lg-6 col-md-8 col-sm-12"> [ERROR ->]<router-outlet></router-outlet> </div> </nb-card-body> "): ng:///ThemeModule/NgxAuthComponent.html@6:14`

Other information:

npm, node, OS, Browser Chrome and firefox latest version

Angular, Nebular Angular 5 and Nebular latest version using ngx-admin

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
nnixaacommented, Sep 20, 2018

Hi @cyrilselasi, please take a look at this article https://github.com/akveo/nebular/blob/master/docs/articles/auth-custom-ui.md. You are just missing the router module import. Closing this issue as it’s been fixed in docs.

1reaction
nnixaacommented, Mar 19, 2018

@Coolpix, right, I misread the description, sorry 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 13 Customizing the Authentication User Interface
You can customize the following login page UI elements: ... error. Indicates whether authentication framework/module needs to terminate the authentication ...
Read more >
Custom Auth Components - Nebular - GitHub Pages
Customizable Angular UI Library based on Eva Design System with 40+ UI components, 4 visual themes, Auth and Security modules.
Read more >
Custom UI - Forge - Atlassian Developer
Start by creating a new app from one of the custom UI templates. After you create a custom UI template: Go to static/<module-name>...
Read more >
Set up customized authentication modules - CyberArk Docs
Perform this procedure only if you are implementing custom authentication in the classic UI. To enable the authentication type: Open the ...
Read more >
Amplify UI's new Authenticator component makes it easy to ...
Get started – one-click hosting · Create an app backend with authentication · Add <Authenticator> UI to our React app · Customize default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found