Почему я получаю это предупреждение ниже для:
<img :src="getImgUrl(post.thumbnail.src)" :alt="post.thumbnail.alt">
methods: {
getImgUrl(pic) {
return require( '~/assets/' + pic )
}
}
Предупреждение на терминале:
Module parse failed: Unexpected character '#' (1:0) friendly-errors 16:58:06
You may need an appropriate loader to handle this file type.
> # ASSETS
|
| **This directory is not required, you can delete it if you don't want to use it.**
friendly-errors 16:58:06
@ ./assets sync ^\.\/.*$
@ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/work/index.vue?vue&type=script&lang=js&
@ ./pages/work/index.vue?vue&type=script&lang=js&
@ ./pages/work/index.vue
@ ./.nuxt/router.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js
Есть идеи, как это исправить?