Skip to content

[bug] defineLive missing in v9.8.16 #1949

@daydream05

Description

@daydream05

[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

  1. Install [email protected]
  2. Try to import defineLive from 'next-sanity'
  3. Attempt to use it to set up live preview functionality
  4. 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions