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

NuxtImg component: process.env is undefined #663

Closed
ijkml opened this issue Nov 25, 2022 · 4 comments
Closed

NuxtImg component: process.env is undefined #663

ijkml opened this issue Nov 25, 2022 · 4 comments

Comments

@ijkml
Copy link

ijkml commented Nov 25, 2022

The <NuxtImg /> component does not seem to work. An error is logged: process.env is not defined. And the debugger points to this line

if (process.env.prerender) {

Using Nuxt 3.0 and latest nuxt-img (1.0.0-27821548.ab054e4)
Here is a repro: https://stackblitz.com/edit/github-ytnyej?file=app.vue

Thank you!

@ErriourMe
Copy link

The same problem

@gitFoxCode
Copy link

Same problem 😞

@brunodeangelis
Copy link

This is fixed in #661. We just need to wait for an admin to merge

@piscis
Copy link
Contributor

piscis commented Nov 28, 2022

FYI: @nuxt/[email protected] should contain the fix from #661

@pi0 pi0 closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants