Closed sayjeyhi closed 5 months ago
I made this:
'use client';
import { ContentfulLivePreview } from '@contentful/live-preview';
ContentfulLivePreview.init({
locale: 'en-US',
debugMode: true,
enableLiveUpdates: true,
});
export default function LivePreview() {
return null;
}
and usage in your component:
{isEnabled && <LivePreview />}
I am getting this error,
Error: Live updates are not initialized, please call ContentfulLivePreview.init()
first.
Any ideas guys ? @sayjeyhi @bluebeel
Without any piece of code, I cannot tell you anything
Hi
I have a question, why we can't use
lazy
andSuspense
to import live preview in nextjs14? instead of having vite and extra build step...