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
When improving my playground component, I encountered an issue.
When I do a "npm start", everything run smoothly but "npm build" throws me what you see in screenshot.
But obviously, nothing I tried to escape SSR issue work ...
importReactfrom"react"importLayoutfrom"@theme/Layout"importBrowserOnlyfrom"@docusaurus/BrowserOnly"importErrorBoundaryfrom"@docusaurus/ErrorBoundary"functionPlaygroundInner(): JSX.Element{constPlaygroundInnerComponent=require("@site/src/pages/components/PlaygroundInner").default;return<PlaygroundInnerComponent/>}functionPlaygroundComponent(): JSX.Element{// No SSR for the live preview// See https://github.com/facebook/docusaurus/issues/5747return(<BrowserOnlyfallback={<div>Loading...</div>}>{()=>(<><ErrorBoundaryfallback={({ error, tryAgain })=>(<div><p>
Playground component crashed because of error: {error.message}
.
</p><buttononClick={tryAgain}>Try Again!</button></div>)}><PlaygroundInner/></ErrorBoundary></>)}</BrowserOnly>)}exportdefaultfunctionPlayground(): JSX.Element{return(<Layouttitle={`Playground`}description="Playground of docusaurus-json-schema-plugin"><PlaygroundComponent/></Layout>)}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When improving my playground component, I encountered an issue.

When I do a "npm start", everything run smoothly but "npm build" throws me what you see in screenshot.
But obviously, nothing I tried to escape SSR issue work ...
Any ideas ?
Thanks in advance
Source : jy95/docusaurus-json-schema-plugin#35
Beta Was this translation helpful? Give feedback.
All reactions