Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Nebular to 2.0.0 error at compiling #856

Closed
1 task
oscarholinger opened this issue Oct 2, 2018 · 7 comments · Fixed by #857
Closed
1 task

Updating Nebular to 2.0.0 error at compiling #856

oscarholinger opened this issue Oct 2, 2018 · 7 comments · Fixed by #857

Comments

@oscarholinger
Copy link

Compiling error

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

  • [X ] bug report
  • feature request

Issue description

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\ClientApp\node_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!

@tomadj
Copy link

tomadj commented Oct 2, 2018

Hello !

Same problem.
To fix this, install @angular/cdk :

npm install --save @angular/cdk

It's normal ? Material is now required ?

Thank's

@oscarholinger
Copy link
Author

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.

@nnixaa
Copy link
Collaborator

nnixaa commented Oct 2, 2018

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.

@benmizrahi
Copy link

benmizrahi commented Oct 2, 2018

same issue here :(

@benmizrahi
Copy link

benmizrahi commented Oct 2, 2018

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

@nnixaa
Copy link
Collaborator

nnixaa commented Oct 3, 2018

2.0.1 is released with a fix for this issue.

@anuj509
Copy link

anuj509 commented Nov 8, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants