[Solved] Overhead processing cannot be used in Nuxt.js

Ke kaji Asks: Overhead processing cannot be used in Nuxt.js

What I want to come true​

I used inject in Nuxt.js but I get an error. I want to use the same function in Vuex and Components.

#Code

VueFile

template

Code:
<template v-if="selectedBook != null">
  <v-row style="text-align:center;">
    <v-col cols="6" class="pa-5">
      <img :src="image(selectedBook)"> // inject image
    </v-col>
    <v-col cols="4" class="pa-5">
      <v-card-title>{{ title(selectedBook) }}</v-card-title> // inject title
      <v-card-subtitle class="pa-3">
        {{ author(selectedBook) }} // inject author
      </v-card-subtitle>
    </v-col>
  </v-row>
</template>

script

Code:
 methods: {
    title (value) {
      return this.$title(value)
    },
    author (value) {
      return this.$author(value)
    },
    image (value) {
      return this.$image(value)
    },
}

plugin plugin/bookInfo

Code:
export default ({ app }, inject) => {
  inject('title', value => value.volumeInfo.title ? value.volumeInfo.title : 'No title')
  inject('author', value => value.volumeInfo.authors ? value.volumeInfo.authors[0] : 'No authors')
  inject('image', value => value.volumeInfo.imageLinks ? value.volumeInfo.imageLinks.thumbnail : noImage)
}

Added to nuxt.config

Code:
 plugins: [
    'plugins/axios',
    'plugins/bookInfo'
  ],

Error​

Code:
vue.runtime.esm.js?2b0e:1419 Uncaught (in promise) TypeError: Cannot read property 'props' of undefined

What I tried myself​

①  I checked the Console but didn’t understand.
enter image description here

②I searched for the error text, but could not find the corresponding one.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.