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

The 'You Might Not Need next-mdx-remote' example not working #479

Open
m5p3nc3r opened this issue Oct 18, 2024 · 0 comments
Open

The 'You Might Not Need next-mdx-remote' example not working #479

m5p3nc3r opened this issue Oct 18, 2024 · 0 comments

Comments

@m5p3nc3r
Copy link

Describe the bug

Hi Guys

Whilst not strictly a problem with next-mdx-remote, the example documentation I am following is in this projects README.md.

I am using the example code to pre-render routes under blog/[...slug]/page.tsx where the actual contents are available at compile time in the route blog/posts/....

If I try and load an image like this

import Image from "next/image";
import MyImage from "@/images/my_image.gif";

<Image src={MyImage} />

I get a issues like Did you mean to import "next/image.js"?, and Error: Unknown file extension ".gif" for ....

It looks to me like the compiler does not inherit the same configuration as the base next.js compiler. Is there any way to fix this, and is it worth updating the documentation in this project to reflect this?

The reproduction URL is the website I am trying to build. The files in question are:

Thanks

Reproduction

https://github.com/m5p3nc3r/website

next-mdx-remote version

v5.0.0

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

1 participant