Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't connect to server #1195

Open
1 task
frivolta opened this issue Sep 9, 2024 · 2 comments
Open
1 task

Couldn't connect to server #1195

frivolta opened this issue Sep 9, 2024 · 2 comments

Comments

@frivolta
Copy link

frivolta commented Sep 9, 2024

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
@earthspiligrim
Copy link

+1 even i am facing the same error Any solution to this?

@trof808
Copy link

trof808 commented Oct 13, 2024

I have the same issue. Still no thoughts. I thought it could be because of uBlock extension, but it was not confirmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants