VTT Files not loading in NuxtJS, src returns [object Module]

Viewed 12

I am trying to get a VTT file to load, but after configuring the loaders, the src is returning [object Module], even if I do require('file').default, it still will not load. Here's my nuxt.config.js build object.

build: {
loaders: {
  vue: {
    transformAssetUrls: {
      src: 'src',
      source: 'src',
      track: 'src'
    }
  },
},
extend(config, { isDev, isClient }) {
  config.module.rules.push({
    test: /\.(vtt)(\?.*)?$/,
    loader: 'vue-loader',
    options: {
      esModule: false
    }
  });
}
},
0 Answers
Related