-
Notifications
You must be signed in to change notification settings - Fork 102
Description
[bug] defineLive missing in v9.8.16
Describe the bug
The defineLive
function appears to be missing from next-sanity
package version 9.8.16, causing TypeScript compilation errors when trying to implement live preview functionality.
To Reproduce
- Install
[email protected]
- Try to import
defineLive
from 'next-sanity' - Attempt to use it to set up live preview functionality
- Observe TypeScript error indicating the function is not found
Expected behavior
defineLive
should be available as an import from 'next-sanity' to enable live preview functionality with proper type support.
Which versions of Sanity are you using?
@sanity/client: 9.8.16
next-sanity: 9.8.16
What operating system are you using?
[User should fill this in]
Which versions of Node.js / npm are you running?
[User should fill this in]
Additional context
This issue appears when trying to implement visual editing and live preview functionality following the Sanity documentation. The defineLive
function is referenced in documentation but appears to be missing from the package exports.
Code that fails:
import { defineLive } from 'next-sanity' // Cannot find 'defineLive' in 'next-sanity'