Nebular: Cannot resolve eva-icons in \@nebular\evaicons

Created on 9 Apr 2019  ·  5Comments  ·  Source: akveo/nebular

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request

Issue description

Build failed
Current behavior:
Build failed with error message:
"ERROR in ./node_modules/@nebular/eva-icons/eva-icons.module.js
Module not found: Error: Can't resolve 'eva-icons' in '~\ClientApp\node_modules\@nebular\eva-icons'"

Expected behavior:
Build successful

Steps to reproduce:

  1. Create new blank angular project with latest version
  2. ng add @nebular/theme -> complete without errror
  3. cmd: npm install
  4. cmd: npm start

Most helpful comment

I managed to get mine working by first installing eva-icons
npm i eva-icons --save
and then running the following command
npm i @nebular/eva-icons --save

Hope it helps

All 5 comments

you can try ”ng add @nebular/[email protected]

Here is the cause https://github.com/akveo/nebular/issues/1358#issuecomment-481593025. Closing as duplicate.

I managed to get mine working by first installing eva-icons
npm i eva-icons --save
and then running the following command
npm i @nebular/eva-icons --save

Hope it helps

@GregSithole
after doing the above step , still i am facing these issue
ERROR in node_modules/@nebular/eva-icons/eva-icons.module.d.ts(1,10): error TS2305: Module '"C:/Dev/Workspaces/efin-ui/node_modules/@nebular/theme"' has no exported member 'NbIconLib
raries'.
node_modules/@nebular/eva-icons/eva-icons.module.d.ts(1,27): error TS2305: Module '"C:/Dev/Workspaces/efin-ui/node_modules/@nebular/theme"' has no exported member 'NbSvgIcon'.

Thanks for the answer @GregSithole!

@sandeepkamathkr Which @nebular/theme version do you use? Could you please post Angular and Nebular dependencies list from package.json? Looks like you use Nebular prior to 4, which doesn't work with @nebular/eva-icons.

Was this page helpful?
0 / 5 - 0 ratings