Skip to content

Error: ServiceWorker script threw an exception during script evaluation (SB 2.6.1) #1946

@laikq

Description

@laikq

On reloading silverbullet, I consistently get this error:

Error: ServiceWorker script at https://{{domain}}/service_worker.js for scope https://{{domain}}/ threw an exception during script evaluation.

This is happening since a few days now, it hasn't always been this way.

From the Firefox logs, I found these lines which might be relevant:

[Client] Now evaluating Library/Std/Infrastructure/Page Templates@3117 [logger.ts:43:35](https://{{domain}}/client/lib/logger.ts)
[Client] Error during : TypeError: ServiceWorker script at https://{{domain}}/service_worker.js for scope https://{{domain}}/ threw an exception during script evaluation. [logger.ts:43:35](https://{{domain}}/client/lib/logger.ts)
   e logger.ts:43
   reportError client.ts:415
   <anonymous> debug.ts:2
Uncaught (in promise) TypeError: ServiceWorker script at https://{{domain}}/service_worker.js for scope https://{{domain}}/ threw an exception during script evaluation.

I thought maybe this has something to do with page templates, but couldn't spot anything weird on Library/Std/Infrastructure/Page Templates (I didn't change anything there). I can create pages from templates just fine.

  • Version: 2.6.1-0-g9f54b3a7-2026-04-11T12-34-12Z
  • Plugs installed: mrmugame/Silversearch, zefhemel/Git
  • Browser: Firefox 148

Interestingly, on mobile I get a different error:

Error: Importing a module script failed.

I have no idea what these error messages are trying to tell me — any ideas? Is anyone else getting the same error message? Maybe these errors can also be ignored, I've yet to find anything broken/not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions