sdorra / content-collections

Transform your content into type-safe data collections
https://content-collections.dev
MIT License
487 stars 22 forks source link

No documents generated on save - cache is not a function #384

Closed XavierGeerinck closed 2 hours ago

XavierGeerinck commented 2 hours ago

I just tried generating some compiled markdown, but I am constantly getting:

error TypeError: cache is not a function

Using the latest react and nextjs versions (15.0.2)

XavierGeerinck commented 2 hours ago

Can be closed, figured it out. Had to pass context in the transform function

const body = await compileMDX(context, document);