question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem when trying to use global Sass files.

See original GitHub issue

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

# I am trying to use a global Sass file and access color variables from it in my components, but I always get the result of “variable not found”.

How can I reproduce this problem?

# In a new project from scratch, configure a global Sass file following the official guide in this link.

If visual, provide a screenshot.

# image

Tell me about your development environment.
  • Node version: v8.11.3
  • NPM version: 5.6.0
  • Yarn version: 1.6.0
  • vue-cli version: 2.9.6
  • Operating System: Windows 10 BUILD 1803

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

20reactions
abramdevcommented, Oct 10, 2018

Change this

_20181010133133

to

_20181010133405

This worked for me.

1reaction
bbrandtcommented, Apr 15, 2020

Change this

_20181010133133

to

_20181010133405

This worked for me.

data has been renamed to prependData in v8.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why @use and @include works in global scss file but not ...
I'm using NextJS v12.1.0 , React v17.0.2 and sass v1.49.9 . I'm trying to create a theme switcher based on that article.
Read more >
Stop using @import with Sass | @use and @forward explained
Keep up to date with my Sass course: https://beyondcss.dev/?utm_campaign=OlderYouTubeVideos&utm_source=YouTubeThe use of @import has been ...
Read more >
How to import Sass/SCSS mixins global? - DEV Community ‍ ‍
I import the two .scss files in the App.js so I can access the classes/mixins/variables global. But only the classes are accessible.
Read more >
Sass: @use
The @use rule loads mixins, functions, and variables from other Sass stylesheets, ... If you want to load members from many files at...
Read more >
CSS, SCSS, and Less support in Visual Studio Code
We can use this to transpile .scss or .less files into .css files. ... If you want to stop the task, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found