-
Notifications
You must be signed in to change notification settings - Fork 189
Description
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.