Skip to content

Preview bug with content reuse on Windows #692

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

Open
StarfallProjects opened this issue May 8, 2025 · 0 comments
Open

Preview bug with content reuse on Windows #692

StarfallProjects opened this issue May 8, 2025 · 0 comments

Comments

@StarfallProjects
Copy link

I suspect you have a bug with the mintlify dev preview and content reuse, possibly due to Windows.

  • OS: Windows 11 Pro
  • NodeJS: 22.14.0

I followed this doc: https://mintlify.com/docs/reusable-snippets

I created a snippets directory at the root of the project, containing a file manage-corporate-billing.mdx. Then imported like so: import ManageCorporateBilling from '/snippets/manage-corporate-billing.mdx';

I'm getting Could not find file when running mintlify dev.

I tried things like moving the snippets directory into the sub directory, or only using the snippet on a top level page. It never worked.

However, when I pushed and created a remote deploy preview, your preview build successfully rendered the snippet. This makes me suspect Windows issues (maybe as basic as handling the different / vs \?), as I've run into this sort of thing with different static site generators before.

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