Answer the question
In order to leave comments, you need to log in
Correct loading of images in nuxt.js does not work with dynamic path substitution?
Hello.
Project on vue + nuxt.js
There is a component
<template lang="pug">
.vn-image
.vn-image-loader(v-if="loading")
img(:src="require(src)" :alt="alt" @load="loading = false")
</template>
Cannot find module '~/assets/images/team/aleksandr.png'
webpack:/components/uiElements/vnImage sync:2: webpackEmptyContext
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question