Skip to content

Version 1.98.1 stops working with uncaught SecurityError exception #3634

Closed

Description

@asevich

Which project does this relate to?

Router

Describe the bug

Updating a router package to version 1.98.1 completely breaks router initialization in native context. In my example it breaks it in Figma Plugin context with following error

Uncaught SecurityError: Failed to read the 'sessionStorage' property from 'Window': Storage is disabled inside 'data:' URLs.

Your Example Website or App

https://github.com/asevich/tanstack-router-bug

Steps to Reproduce the Bug or Issue

  1. Install Figma
  2. Build plugin
pnpm -r install && pnpm -r build
  1. Open any Figma document or create a new one
  2. Go to Figma menu -> Plugins -> Development -> Import new plugin from manifestImage
  3. Select manifest.json from the example plugin project. That should show menu. Just click on the router-kaput plugin and it should show empty UI. The error is in the console. To open console press Shift + P and select/search for Show/Hide console.

If router is downgraded to 1.98.0 and plugin is rebuilt then UI will show working without any plugin errors in console.

Expected behavior

As a user I expect router to work in native context after minor version update

Screenshots or Videos

No response

Platform

Additional context

MIght be related to #3191

Activity

  1. schiller-manuel commented on Mar 2, 2025

    @schiller-manuel
    Collaborator

    how can we check whether sessionstorage is accessible then?

  2. added a commit that references this issue on Mar 4, 2025
    1849f04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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