Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error page image not rehydrating properly #249

Open
shadow81627 opened this issue May 1, 2021 · 4 comments
Open

404 error page image not rehydrating properly #249

shadow81627 opened this issue May 1, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@shadow81627
Copy link
Contributor

shadow81627 commented May 1, 2021

On local dev (npm run dev) my 404 page is returning this error:
localhost_3000_test

 ERROR  [Vue warn]: Error in render: "TypeError: Cannot read property '_img' of undefined"                                  14:55:22

found in

---> <404> at components/error/404.vue
       <Error> at layouts/error.vue
         <Nuxt>
           <VMain>
             <VApp>
               <Layouts/default.vue> at layouts/default.vue
                 <Root>

In a static generated production environment on vercel the image is pointing to the original static file.

Vercel preview
Code

Similar issue to #234

@danielroe danielroe added the bug Something isn't working label May 3, 2021
pi0 added a commit that referenced this issue May 12, 2021
@pi0
Copy link
Member

pi0 commented May 13, 2021

Hi @shadow81627. Would you please try 0.4.9 if it fixes your issue?

@shadow81627
Copy link
Contributor Author

The update has fixed the 404 page in my preview but when I run npm run generate npm run start I get an error.

TypeError: input must be a string (received undefined: undefined)

localhost_3000_404

My lighthouse CI check is failing on the 404 page with

total-byte-weight failure for minScore assertion
       Avoid enormous network payloads

@tho-masn
Copy link

I'm getting the same error using @nuxt/image 0.4.12, nuxt 2.15.6. I've tried different configurations (target static and server - with and without ssr). The result is always the same.
Loading pages which includes the nuxt-img tag results in the following two errors:

[Vue warn]: Missing required prop: "src"
[Vue warn]: Error in render: "TypeError: input must be a string (received undefined: undefined)"

Any ideas why this is happening? img tags are working.

@genitutors
Copy link

genitutors commented Nov 13, 2021

I face the same issue despite not have nuxt-lazy-loader installed at all. I use vuetify and whenever I reload the page, the image appears and the error disappears. However, clicking the link to the image page from another webpage will return the error

procrates pushed a commit to procrates/nuxt-image that referenced this issue Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants