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

require is not defined #236

Open
sudoLife opened this issue Jul 12, 2022 · 1 comment
Open

require is not defined #236

sudoLife opened this issue Jul 12, 2022 · 1 comment

Comments

@sudoLife
Copy link

The problem arises from this:

"data-jpg-src": require('~/assets/' + $props.src),
"data-webp-src": require('~/assets/' + $props.src + '?webp')

I'm guessing that's because I'm using Nuxt 3 which uses Vite instead. 🤔

@JonathanTreffler
Copy link
Owner

I have not tested this project with Nuxt 3 so far.
I will, when I find time to migrate my personal projects to it.

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

2 participants