sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Couldn't connect to server

Open frivolta opened this issue 1 year ago • 3 comments

Bug report

"@codesandbox/sandpack-client": "2.10.0" When running a basic version of Sandpack the preview is visible, after a few seconds i get this error:

Couldn't connect to server

This means sandpack cannot connect to the runtime or your network is having some issues. Please check the network tab in your browser and try again. If the problem persists, report it via [email](mailto:[email protected]?subject=Sandpack%20Timeout%20Error) or submit an issue on [GitHub.](https://github.com/codesandbox/sandpack/issues)

ENV: create-react-app
ERROR: TIME_OUT

this is my configuration:

<SandpackProvider
      template={template}
      options={{
        bundlerURL: "https://sandpack-bundler.codesandbox.io",
        autorun: true,
        recompileMode: "immediate",
        activeFile,
      }}
      files={codeEditorFiles}
    >
      <SandpackCodeEditor showInlineErrors showRunButton initMode="immediate" />
      <SandpackPreview
        showRefreshButton
        showSandpackErrorOverlay
        showOpenInCodeSandbox={false}
      />
    </SandpackProvider>

where template is react and active file is "App.js".

Packages affected

  • [ X ] sandpack-client
  • [ ] sandpack-react

frivolta avatar Sep 09 '24 09:09 frivolta