SASS Loader module build failed when setting up project
See original GitHub issueVersion
- 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:
cd my-slicemachine-project
prismic sm --setup
yarn dev
What is expected?
yarn dev run without errors
What is actually happening?
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:
- Created 3 years ago
- Reactions:6
- Comments:11 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 issueFixed in https://github.com/prismicio/vue-essential-slices/commit/ab570cd2bc8c527d1b02f275ca4b6f337885089c Thanks for the report!