We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does next-images supports absolute path? I'm trying to import a .svg but I'm getting an error.
Code:
Error: Error: /Users/v/project/src/components/home/Header.tsx: Cannot find module 'src/assets/menuIcon.svg' from '/Users/v/project/src/components/home'
Error: /Users/v/project/src/components/home/Header.tsx: Cannot find module 'src/assets/menuIcon.svg' from '/Users/v/project/src/components/home'
next.config.js:
const withImages = require('next-images') module.exports = withImages({ esModule: true })
const withImages = require('next-images')
module.exports = withImages({ esModule: true })
The text was updated successfully, but these errors were encountered:
@vsachini Sorry for the late response, yes I think it should support it. Have you installed babel plugin module resolver or something like that?
Sorry, something went wrong.
Hey I don't think absolute paths are working:
Error: Cannot find module '/home/ldlework/src/ldlework-next/apps/ldlework-dot-com/projects/category-1/project-a/odd.jpg'
Changing it to a relative path lets it get imported no problem.
No branches or pull requests
Does next-images supports absolute path?
I'm trying to import a .svg but I'm getting an error.
Code:
Error:
Error: /Users/v/project/src/components/home/Header.tsx: Cannot find module 'src/assets/menuIcon.svg' from '/Users/v/project/src/components/home'
next.config.js:
The text was updated successfully, but these errors were encountered: