codesandbox/sandpack

Service Worker registration failed: TypeError

Graquick opened this issue · 3 comments

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

Description of the problem

image

What were you doing when the problem occurred?

Opening the browser with a Sandpack instance in the viewport view causes the error in my console (see screenshot above).

What steps can we take to reproduce the problem?

I implement two types of sandpack instances in my project: 1. Quickstart Presets, 2. Fully cusomized editor.
Both are implemented by following the official documentation.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Sandpack-client version
Sandpack-react version ^2.12.1
Browser Firefox, Chrome, Safari
Operating System macOS: Sonoma 14.3.1

Having the same problem. Here's my details.

Software Name/Version
Sandpack-client version  
Sandpack-react version ^2.13.5
Browser Firefox, Chrome, Safari, Arc
Operating System macOS: Sonoma 14.3.1

Only happened after upgrading. Functionality still works, but error is displayed. Can see it here. Codebase is here (astro)

Screenshot 2024-03-12 at 12 50 15

It has been fixed in the latest version. Sorry for the long wait!

Awesome! Thanks!