You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I have the same issue locally when running mintlify dev, I am getting this error: Could not find file /snippets/my-snippets.mdx - imported from test.mdx
I suspect you have a bug with the
mintlify dev
preview and content reuse, possibly due to Windows.I followed this doc: https://mintlify.com/docs/reusable-snippets
I created a
snippets
directory at the root of the project, containing a filemanage-corporate-billing.mdx
. Then imported like so:import ManageCorporateBilling from '/snippets/manage-corporate-billing.mdx';
I'm getting
Could not find file
when runningmintlify 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.The text was updated successfully, but these errors were encountered: