The Wayback Machine - https://web.archive.org/web/20201108123209/https://github.com/NativeScript/nativescript-dev-sass/issues/87
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

Unreferenced files being picked up in compilation #87

Open
Gitelaus opened this issue Sep 3, 2018 · 0 comments
Open

Unreferenced files being picked up in compilation #87

Gitelaus opened this issue Sep 3, 2018 · 0 comments
Projects

Comments

@Gitelaus
Copy link

@Gitelaus Gitelaus commented Sep 3, 2018

Files found outside of my Nativescript application are being picked up by the sass compiler. It appears it's finding my base assets directory (outside of my Nativescript application and not something I want compiled), and trying to compile one of the files there by itself and errors due to having no variable definition. This stops the compilation of my Nativescript sass files.

To perhaps make things a little clearer, my folder structure looks like so:

image

I am executing tsn run ios --syncAllFiles within mobile, but the compiler grabs things from assets as seen above.

The files within the assets directory are not referenced anywhere in my Nativescript application. The only defined scss files here are as follows:

image

The error I receive still points towards my assets directory:

Found peer node-sass
Error: Undefined variable: "$color-link".
        on line 4 of app/assets/sass/components/buttons.scss
>>   color: $color-link;

   ---------^

SASS compiler failed with exit code 1

Which platform(s) does your issue occur on?

I have seen this happen on the IOS emulator, but issue is persistent across both emulated environments.

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.2.2
  • Cross-platform modules: 4.1.1
  • Runtime(s): 4.1.1
  • Plugin(s): N/A
@rosen-vladimirov rosen-vladimirov added this to Inbox in CLI Team May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.