image icon indicating copy to clipboard operation
image copied to clipboard

Cannot create property '_img' on boolean 'true'

Open FalkoJoseph opened this issue 2 years ago • 2 comments

Schermafbeelding 2022-02-28 om 18 12 59

Hi guys,

When adding "@nuxt/image", to my buildModules I receive the following error:

Cannot create property '_img' on boolean 'true'

Here's the versions of the packages I'm using:

  • "@nuxt/image": "^0.6.2"
  • "nuxt": "^2.15.8"
buildModules: [
    "@nuxtjs/eslint-module",
    "@nuxtjs/stylelint-module",
    "nuxt-windicss",
    "nuxt-font-loader",
    "@nuxt/image",
  ],

Any idea how I can fix this? When I remove this line from the buildModules the error disappears. 🤔

FalkoJoseph avatar Feb 28 '22 17:02 FalkoJoseph

For those with the same issue: I've switched to V-Lazy-Image as a temporarily solution.

FalkoJoseph avatar Mar 10 '22 14:03 FalkoJoseph

Can you please provide a reproduction? 🙏🏼

_img is being accessed from ssrState.nuxt and payload data. Both shouldn't be true it is strange...

pi0 avatar Jun 21 '22 15:06 pi0