-
Notifications
You must be signed in to change notification settings - Fork 203
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
NextJS relative image imports #289
Labels
duplicate
This issue or pull request already exists
Comments
Thanks a lot for opening this issue. This seems to be a duplicate of #11. In case you think it's a different issue, I'm happy to re-open this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've been trying to figure out if its possible for image imports to resolve relative to a nested directory, let me explain:
I have the following structure
where posts will be stored in a named directory, with an index file and any other resources
And in the
index.mdx
file for "building-a-blog" I want add the dummy.png image, So i'm trying this:it wasn't working, but when doing research I saw that it looked like some kind of fix for this was put in place in the most recent release as part of #270 but I couldn't quite figure out how to get it to work,
I tried updating my
makeSource
function with anesbuildOptions
function:and tried using the remarkMdxImages plugin as it seemed that's what most people were doing
When i do this, I get an error in the console:
I don't know if I'm missing something, or if the fix mentioned in #270 was for something completely different
Theres nothing special about the project either, it uses https://github.com/SamuelQuinones/samtheq.com with the example additions from the getting started documentation.
The text was updated successfully, but these errors were encountered: