alaskafx
@alaskafx
Не .do Frontend

Module build failed TypeError: this.getOptions is not a function?

полная ошибка
Failed to compile with 1 errors

ERROR in ./.nuxt/components/nuxt-error.vue?vue&type=style&index=0&lang=css
&

Module build failed (from ./node_modules/css-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
at Object.loader (E:\other\0for_work\MYPROJECTS\brusich\node_modules\css
-loader\dist\index.js:31:27)

@ ./node_modules/vue-style-loader??ref--3-oneOf-1-0!./node_modules/css-load
er/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/vue-loader/lib/loaders/style
PostLoader.js!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./node_mod
ules/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-error.vue?vu
e&type=style&index=0&lang=css& 4:14-325 15:3-20:5 16:22-333
@ ./.nuxt/components/nuxt-error.vue?vue&type=style&index=0&lang=css&
@ ./.nuxt/components/nuxt-error.vue
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js
(webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&ove
rlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js


В стилях Index.scss имею background-image: url(./bg.svg);
В шаблоне компонента имею
<swiper-slide v-for="(house, index) in houses" :key="index">
      <img :src="require(`../static/scss/index/${house.img.toLowerCase()}`)" alt="">
      <p> {{ house.name }} </p>
    </swiper-slide>


А так же nuxt.config.js:
export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: 'brusich',
    htmlAttrs: {
      lang: 'ru'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    '~/static/scss/reset.css',
    '~/static/scss/variables.scss'
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    { src: '~/plugins/swiper', mode: 'client' }
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
    // https://go.nuxtjs.dev/eslint
    '@nuxtjs/eslint-module'
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://go.nuxtjs.dev/axios
    '@nuxtjs/axios',
    'nuxt-sass-resources-loader'
  ],

  // Axios module configuration: https://go.nuxtjs.dev/config-axios
  axios: {
    // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
    baseURL: '/'
  },

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
  }
}


Но получаю ошибку в спойлере выше: как решить?
  • Вопрос задан
  • 316 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы