4

What to do if you try load an Nebular page and then this error occurs?

Error: Default pack is not registered.
btd1337
  • 2,616
  • 2
  • 16
  • 25

2 Answers2

8

Make sure to install the eva icon pack:

npm i --save @nebular/eva-icons

and then, import NbEvaIconsModule in AppModule.

import { NbEvaIconsModule } from '@nebular/eva-icons';

@NgModule({
  imports: [
    // ...
    NbEvaIconsModule,
  ],
})
export class AppModule { }

And import NbIconModule in the module that are you using it.

import { NbIconModule } from '@nebular/theme';

@NgModule({
  imports: [
    // ...
    NbIconModule,
  ],
})
export class PageModule { }

Restart the app and try again!

btd1337
  • 2,616
  • 2
  • 16
  • 25
1

Make sure to install the eva icon pack:

npm i --save @nebular/eva-icons

Then, import NbEvaIconsModule in AppModule:

import { NbEvaIconsModule } from '@nebular/eva-icons';

@NgModule({   imports: [
    // ...
    NbEvaIconsModule,   ]
}) export class AppModule { }

And import NbIconModule in the module that are you using it.

import { NbIconModule } from '@nebular/theme';

@NgModule({   imports: [
    // ...
    NbIconModule,   ],
})
export class PageModule { }

Restart the app and try again!

Elikill58
  • 4,050
  • 24
  • 23
  • 45