Closed RodrigoPauletti closed 6 years ago
Hey @RodrigoPauletti, I'm not that good with NativeScript, but the error says that you don't have @nebular/theme module installed. Do you have it?
@nnixaa @RodrigoPauletti
If you look at his code, the folder Theme in @nebular is indeed missing.
@nnixaa @Prefix1802
I'm not using @nebular/theme, because I don't need to use Auth Components. The documentation (https://akveo.github.io/nebular/docs/auth/installation#installation) says, if I don't need to use Auth Components, I don't need to install @nebular/theme:
First, let's install the module as it's distributed as npm package. Make sure you have the Nebular Theme module up and running. Nebular Theme is required to use built-in Auth Components. If you are not going to use those at all, you can use Auth Module without the Nebular Theme module.
@RodrigoPauletti, unfortunately, this is not completely true at the moment, so we have to fix the docs. You would need to install the theme module anyway, but this is mostly (mostly - because you still need to install it :/) fine in terms of bundle size, and it doesn't include all of the components (those are separate modules)
When you look at nebular/src/framework/auth/package.json
"peerDependencies": { "@angular/common": "^6.0.0", "@angular/core": "^6.0.0", "@angular/router": "^6.0.0", "@angular/forms": "^6.0.0", "@angular/http": "^6.0.0", "@nebular/theme": "2.0.0-rc.10", <--- theme is needed "rxjs": "^6.1.0" }
My guess based on this finding is that you need to have theme installed. But i could be wrong.
@nnixaa No problem :) @Prefix1802 Ok. I will install the theme right now and try to build again. Thanks, guys!
@nnixaa @Prefix1802
I install the @nebular/theme now and no more errors appears. Everything is fine. Thanks again!
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior: I'm trying to use the Nebular Auth and Theme in my NativeScript project, but the project doesn't compile successfully.
Related code:
NativeScript Playground: https://play.nativescript.org/?template=play-ng&id=ivxKp2&v=2
Error log:
Angular, Nebular
Angular version: 6.0.0 Nebular/auth: 2.0.0-rc.10