Skip to content

React + JavaScript template fails to load: npm error u.toSorted is not a function #2036

Open

Description

@unseenumair

Describe the bug

Observed behavior:

  • Terminal shows:
    npm error u.toSorted is not a function
    npm error A complete log of this run can be found in: /home/.npm/_logs/...-debug-0.log
  • Preview pane fails to load
  • No commands were manually run; it happened automatically on template load

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-sscmbxgr?file=index.html&terminal=dev

Steps to reproduce

  1. Open StackBlitz
  2. Click "Create New Project" → "React + JavaScript"
  3. StackBlitz automatically tries to run npm install && npm run dev in the terminal

Expected behavior

  • Dependencies install successfully
  • Preview pane shows Vite dev server running

Parity with Local

Screenshots

Here is the img proof :

Image

Platform

Browser name  = Chrome
Full version  = 103.0.0.0
Major version = 103
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 77818349,
  "usedJSHeapSize": 74831701,
  "jsHeapSizeLimit": 2062548992
}
Hash = 365214aa

Additional context

No response

Activity

  1. unseenumair commented on Jan 6, 2026

    @unseenumair
    Author

    Please fix this bug as soon as Possible .
    Thanks !

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