codesandbox / sandpack

A component toolkit for creating live-running code editing experiences, using the power of CodeSandbox.
https://sandpack.codesandbox.io
Apache License 2.0
4.52k stars 310 forks source link

Service Worker registration failed: TypeError #1091

Open Graquick opened 4 months ago

Graquick commented 4 months ago

Bug report

Packages affected

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
vernak2539 commented 3 months ago

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