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.

SCSS Not Compiling in VueJS Extension Component

See original GitHub issue

General Information

  • [X ] Usage
  • Development
  • Documentation
  • Feature Request

Specific generator

  • [X ] Addons
  • HandlebarsJS

What Version you are running?

Describe your problem

  1. Create a new ApplicationCustomizer Extension project using VueJS
  2. Add PlaceHolderContent dependencies as described here
  3. Create a Vue component with SCSS styling

Sample Code is here: https://github.com/marcDeSantis/vue-spfx

When running gulp serve the SCSS is ignored.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
astanley86commented, Jul 27, 2020

Thank you @StfBauer - you are absolutely correct. This solved it for me!

1reaction
StfBauercommented, Jul 25, 2020

@astanley86 Your issue is something else based in JS.

$style.is-active // Invalid- not possible in JavaScript because you cannot have a dash in a variable name.

$style['is-acitve'] // is when you like to request the is-active

You have a JavaScript issue in your case dashes are allowed in CSS class names but are not allowed In JavaScript.

There are two options:

  • array access as shown before
  • rename the style to isActive then you can use it with $style[is-active]
Read more comments on GitHub >

github_iconTop Results From Across the Web

VueJS + WebpackSimple not compiling SASS - Stack Overflow
I have bare new installation of VueJs by webpack simple, trying to set up SASS to CSS. Docs are saying that it is...
Read more >
Unable to compile css from components written with sass
I am currently developing a chrome extension with vue thanks to the amazing vue-cli-plugin-browser-extension plugin.
Read more >
Automatically import SASS/SCSS into every Vue.js component
Vue CLI 2: · Open the file called /build/utils.js · Find the line containing scss: generateLoaders('sass') · Replace it with the following:.
Read more >
[Solved]-SCSS will not compile, SASS error, no .sass files-Vue.js
[Solved]-SCSS will not compile, SASS error, no .sass files-Vue.js ... Another file, loaded immediately before this one in the style-resources-loader, was missing ...
Read more >
Features | Vite
Vite provides first-party HMR integrations for Vue Single File Components and ... prepending .module to the file extension, for example style.module.scss .
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