Page 1 of 1

Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 10 Mar 2017, 16:25
by diego1982chile
Hi,

I've recently purchased poseidon theme (basic license), and followed steps described in the documentation section,
but i keep getting the following message when i deploy my app:

Error: File to import not found or unreadable: ../../sass/layout/_layout.
Load path: /home/desc01c7/my_project/web_module/web/resources
on line 3 of resources/poseidon-layout/css/layout-turquoise.scss

1: $primaryColor:#00acac;
2:
3: @import '../../sass/layout/_layout';

I can see styles applied only to components (tables, etc) but all of the rest, such as layout menus etc is not loaded.
Based on the messagge displayed above, i suspected it was a permission problem, cuz i'm developing
on linux system, so i did a chmod and chown over sass folder, but it didn work either.

I don't know what could be wrong, could you give me any suggestion? thank's

Re: Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 13 Mar 2017, 12:08
by mert.sincan
Did you add _layout.scss into your project? (src/main/webapp/resources/sass/layout/_layout.scss)

Re: Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 13 Mar 2017, 16:43
by diego1982chile
Hi,

Thank's for your reply,

Yes, i had added the sass folder with its contents,

but i have recently noted that the css files inside ../poseidon-layout/css/
didn't had the correct source code, instead of that they had
what it seems to be an autogenerated code with the previously posted error,
i suspect this was generated when i tried to compile scss files with sass.

What i finally did was to copy the correct content of css folder from source file
and now it loads css correctly, except for one thing, it doesn't load fonts.
Do i have to import fonts manually? cuz documentation does not mention that...

thank's

Re: Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 13 Mar 2017, 20:09
by mert.sincan
Thanks for the update, you can find fonts under src/main/webapp/resources/poseidon-layout/fonts/*** and please add _font.scss file.(src/main/webapp/resources/sass/)

Re: Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 14 Mar 2017, 23:18
by diego1982chile
had forgotten to add on web.xml:

<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>

now it seems to work correctly...thank's

Re: Error: File to import not found or unreadable: ../../sass/layout/_layout...

Posted: 15 Mar 2017, 09:35
by mert.sincan
Glad to hear, thanks for the update!