I'm submitting a ... (check one with "x")
Current behavior:
After updating to the new versi贸n (2.0.0) and running the "ng serve" command, I get the next error:
ERROR in ./node_modules/@nebular/theme/styles/prebuilt/default.css (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/@nebular/theme/styles/prebuilt/default.css)
Module build failed: Error: Can't resolve '/Users/nixa/Development/Projects/Akveo/nebular/node_modules/@angular/cdk/overlay-prebuilt.css' in 'C:\Projects\Project\Project\ClientAppnode_modules@nebular\theme\styles\prebuilt'
Expected behavior:
A compilation without errors.
Steps to reproduce:
Update the version.
I don't know if I'm the only one who is getting this error after updating. Maybe it's an error of mine and I apologize if that is the case.
Keep the great work!
Hello !
Same problem.
To fix this, install @angular/cdk :
npm install --save @angular/cdk
It's normal ? Material is now required ?
Thank's
I have @angular/cdk installed.
I guess the error comes in the URL '/Users/nixa/Development/Projects/Akveo/nebular/node_modules/@angular/cdk/overlay-prebuilt.css'
Is pointing to a nixa local directory or maybe I'm wrong, I don't really know.
Hey Guys, yes, since 2.0 Nebular requires Angular CDK (Component Development Kit) which is not Material per se (even though CDK is hoster on material website), and just a bunch of useful helpers to build better components 馃檪 (here are some more details https://material.angular.io/cdk/categories).
For more details on the upgrade steps and breaking changes please follow the CHANGELOG.
As for the error - it looks really strange, we will look into. As a workaround, instead of the pre-built styles, you can use scss setup, here are some details on it in the documentation https://akveo.github.io/nebular/docs/guides/enable-theme-system#normal-setup.
same issue here :(
Hi,
Please take a look at the cosmic.css, default.css, corporate.css files
@import url(/Users/nixa/Development/Projects/Akveo/nebular/node_modules/@angular/cdk/overlay-prebuilt.css);
I think that it's an hard coded path in the scss file but i can't find where.
Anyway removing this import solved the build issue
2.0.1 is released with a fix for this issue.
for those who are searching and solving same errors you can refer this link. I have forked this repo and fixed with nebular 2.0.2 starter-kit
Most helpful comment
2.0.1 is released with a fix for this issue.