Bug: Cant use nebular/auth without providing nebular/theme
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- [+ ] bug report
- feature request
Issue description
Current behavior:
Importing only nebular/auth causes an issue NullInjectorError: R3InjectorError(AppBrowserModule)[EffectsFeatureModule -> InjectionToken ngrx/effects: Feature Effects -> [object Object] -> AuthEffects -> AuthDataAccessService -> InjectionToken Nebular Auth Strategies -> NbOAuth2AuthStrategy -> InjectionToken Window -> InjectionToken Window -> InjectionToken Window]: NullInjectorError: No provider for InjectionToken Window!
Expected behavior:
serving a project without nebular/theme without issue
Steps to reproduce:
- create an angular 10 project
- import NbAuthModule.forRoot()
- start a project
Related code:
insert short code snippets here
Other information:
npm, node, OS, Browser
<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
node version v14.3.0 npm 6.14.5 “@angular/core”: “^10.0.4”, “@nebular/auth”: “^6.0.0”, Angular, Nebular
<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
How to add a login page to Nebular ngx-admin without using ...
I am nwebie and just using the themes module alone from ngx-admin..I have not used auth module at all ..anyway I can able...
Read more >@nebular/auth - npm
Start using @nebular/auth in your project by running `npm i @nebular/auth`. There are 22 other projects in the npm registry using @nebular/auth.
Read more >An Introduction to Nebular by Akveo — #Nebular101 Pt. 1
Nebular let you choose which theme you like or equate with a design that has been provided. You can customize all style components...
Read more >Nebular and UI Kitten: speed, quality, and success | Akveo Blog
Discover how Nebular and UI Kitten accelerate time to market and provide a solid foundation to software business solutions of any ...
Read more >smag - npm Package Health Analysis | Snyk
[]() [![Build ... For more information about how to use this package see README ... @nebular/auth.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same issue here can we use auth without ebular theme ?
According to the docs it should be possible to use the
@nebular/auth
without@nebular/theme
:But I get following error in the ng console: