electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

[Question] Error After Migration: Global SCSS vue-loader

Open JojoMig opened this issue 8 years ago • 2 comments

Just migrated from a old electron-vue into the latest and I'm having the Error Bellow... Does any one get the Error bellow regarding the scss globals configuration for Pre-Processors?

On the old version I've successfully configured the VueLoader for Scss following these:

  • Docs: https://github.com/SimulatedGREG/electron-vue/blob/master/docs/en/using_pre-processors.md
  • Issue: https://github.com/SimulatedGREG/electron-vue/issues/125

After Migrating to the Latest Electron-Vue i got this Error when running the npm run dev:

ERROR:

ERROR in ./src/renderer/App.vue?vue&type=style&index=0&lang=scss& (./node_modules/css-loader!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=style&index=0&lang=scss&) Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined ^ Undefined variable: "$BrandPrimary".

Development Environment:
  • Node version: 10.12.0
  • NPM version: 6.4.1
  • vue-cli version: (if necessary)
  • Operating System: Windows 10 v1819

JojoMig avatar Nov 12 '18 15:11 JojoMig

Hope this helps https://github.com/SimulatedGREG/electron-vue/issues/699#issuecomment-428444374

umer4ik avatar Nov 14 '18 20:11 umer4ik

Hi @umer4ik yes it definitely helped! Thank you very much man! Issue Solved ;)

JojoMig avatar Nov 15 '18 16:11 JojoMig