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.

SASS Loader module build failed when setting up project

See original GitHub issue

Version

  • Prismic CLI version: 3.8.7
  • Node version: 10.23.2

Reproduction

Follow slicemachine quick start instructions: npx create-nuxt-app my-slicemachine-project

Nuxt app setttings: Screen Shot 2021-02-09 at 18 08 08 cd my-slicemachine-project prismic sm --setup yarn dev

What is expected?

yarn dev run without errors

What is actually happening?

Screen Shot 2021-02-09 at 18 11 12
 ERROR  Failed to compile with 1 errors                                                                                                                        friendly-errors 18:10:53


 ERROR  in ./node_modules/vue-essential-slices/src/slices/PricingTable/index.vue?vue&type=style&index=0&lang=scss&                                             friendly-errors 18:10:53

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):                                                                                             friendly-errors 18:10:53
TypeError: this.getOptions is not a function
    at Object.loader (/Users/pablo/jamstack/my-slicemachine-project/node_modules/sass-loader/dist/index.js:25:24)
                                                                                                                                                               friendly-errors 18:10:53
 @ ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-essential-slices/src/slices/PricingTable/index.vue?vue&type=style&index=0&lang=scss& 4:14-401 14:3-18:5 15:22-409
 @ ./node_modules/vue-essential-slices/src/slices/PricingTable/index.vue?vue&type=style&index=0&lang=scss&
 @ ./node_modules/vue-essential-slices/src/slices/PricingTable/index.vue
 @ ./node_modules/vue-essential-slices/src/slices lazy ^\.\/.*\.vue$ namespace object
 @ ./.nuxt/prismic/sm-resolver.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/components/lib/installComponents.js eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

34reactions
pablogiraltcommented, Feb 9, 2021

ok, so it seems the latest version of sass-loader is not working with latest of vue: https://stackoverflow.com/questions/66082397/typeerror-this-getoptions-is-not-a-function

I run yarn add sass-loader@^10.1.1 to fix the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

22 - Stack Overflow
Getting error message Module build failed (from ./node_modules/sass-loader/dist/cjs.js) when running npm serve · Subscribe to RSS.
Read more >
Module build failed. Invalid options object. - Laracasts
im currently trying to setup a SPA using Vue. i have run into a problem when building the project with webpack. Here my...
Read more >
Cannot Find Module Sass: 8 Solutions That You Can Use in ...
Cannot find module sass is an error that occurs if your project has Sass files. Read this article to learn what caused it...
Read more >
Module not found: Can't resolve 'sass-loader' | bobbyhadz
To solve the error "Module not found: Error: Can't resolve 'sass-loader'", make sure to install the package by opening your terminal in your...
Read more >
Fixing `Error: Node Sass does not yet support your ... - wafrat
Today my React project failed with the following error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): Error: Node Sass ...
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