NativeScript / nativescript-dev-sass

SASS CSS pre-processor for NativeScript projects
Apache License 2.0
44 stars 17 forks source link

Can not build project including nativescript-dev-sass plugin with --path option #34

Closed dtopuzov closed 7 years ago

dtopuzov commented 7 years ago

Steps to reproduce:

tns create TestAppNG --template https://github.com/NativeScript/template-drawer-navigation-ng
tns prepare android --path TestAppNG

Logs:

Executing before-prepare hook from c:\Git\nativescript-cli-tests\TestAppNG\hooks\before-prepare\nativescript-dev-sass.js
Found peer node-sass
Error: File to import not found or unreadable: c:\Git\nativescript-cli-tests\node_modules\nativescript-theme-core\scss\light.
       Parent style sheet: c:/Git/nativescript-cli-tests/TestAppNG/app/app.scss
        on line 4 of TestAppNG/app/app.scss
>> @import '~nativescript-theme-core/scss/light';
   ^

SASS compiler failed with exit code 1
toddanglin commented 7 years ago

Merged the solution from @radeva. Please let me know if that fixes your error.

Should be available on npm as version 1.2.0 shortly.