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

File to import not found or unreadable in _input.scss imports #232

Closed
akalitenya opened this issue Jan 3, 2017 · 7 comments
Closed

File to import not found or unreadable in _input.scss imports #232

akalitenya opened this issue Jan 3, 2017 · 7 comments
Milestone

Comments

@akalitenya
Copy link

Do you want to request a feature or report a bug?

bug

Bug Report

i am using this starter:
https://github.com/qdouble/angular-webpack2-starter/tree/no-universal-support

after run "start" command i got error:

"File to import not found or unreadable: ../../../../node_modules/@angular/material/core/theming/palette.\n
Parent style sheet: ...app/node_modules/@covalent/core/common/styles/_input.scss",

Which version of Angular and Material, and which browser and OS does this issue affect?

@angular/[email protected]
@covalent/[email protected]
@angular 2.4.1

Other information

i think imports in this file "covalent/src/platform/core/common/styles/_input.scss" should have extra level of folder nesting, like this:
../../../../../node_modules/@angular/material/core/theming/palette
^

@emoralesb05
Copy link
Contributor

emoralesb05 commented Jan 3, 2017

Hmm, can you provide more information? We dont get that error in any of our products, and people have been upgrading to 0.10 without that error..

Also, you can try using our pre-compiled platform.css file instead of the platform.scss (stored in the same dir) if thats an issue.

image

@akalitenya
Copy link
Author

Need some time to figure out scss processing in starter repo.
Thank you, closing issue for now.

@emoralesb05
Copy link
Contributor

You can also try adding the platform.css via index.html file.

@corwinm
Copy link

corwinm commented Mar 2, 2017

I am trying to upgrade from v0.9.1 to v1.0.0-beta.2-1 and I am experiencing this issue as well.

@emoralesb05
Copy link
Contributor

emoralesb05 commented Mar 2, 2017

Are you using the platform.scss or platform.css?

@corwinm
Copy link

corwinm commented Mar 2, 2017

We are using platform.scss.
Our import statement looks like:

@import '~@covalent/core/common/platform';

And we are building with webpack 1.14.0

@thekalinga
Copy link

I have the same issue when using with angular-cli.

I am using styles/main.scss instead of styles.scss as a starting point in angular cli.

So my styles section under .angular-cli.json looks like this

"styles": [
    "styles/main.scss"
]

Now if I import platform using @import within styles/main.scss, I am getting the exact same error.

I believe this issue is to do with the relative paths ../../

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

No branches or pull requests

4 participants