Skip to content

Doesn't work with tanstack router types #63

Description

@xidsyed

Example:

Image

The extension throws the following error when trying to fetch the type details for the createRouter function

const router = createRouter({
  routeTree,
  context: {},
  defaultNotFoundComponent: () => <div>OOPSIE</div>,
  scrollRestoration: true,
  defaultStructuralSharing: true,
  defaultPreloadStaleTime: 0,
})

error :

2025-08-28 17:37:15.954 [error] [Window] [Extension Host] TypeTreeRequest error AssertionError [ERR_ASSERTION]: Must provide either symbol or type
    at _typeTree (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/api/dist/tree.js:42:9)
    at _generateTypeTree (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/api/dist/tree.js:35:54)
    at generateTypeTree (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/api/dist/tree.js:13:12)
    at getTypeInfoOfNode (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/api/dist/tree.js:678:12)
    at getTypeInfoAtRange (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/api/dist/tree.js:668:12)
    at getCustomResponse (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/typescript-plugin/dist/index.js:79:59)
    at proxy.getCompletionsAtPosition (/home/shiba/.windsurf/extensions/mxsdev.typescript-explorer-0.4.2/node_modules/@ts-type-explorer/typescript-plugin/dist/index.js:53:38)
    at IpcIOSession.getCompletions (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:194900:54)
    at completionInfo (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:193175:43)
    at /usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:195676:15
    at IpcIOSession.executeWithRequestId (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:195665:14)
    at IpcIOSession.executeCommand (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:195674:29)
    at IpcIOSession.onMessage (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/typescript.js:195722:68)
    at process.<anonymous> (/usr/share/windsurf/resources/app/extensions/node_modules/typescript/lib/_tsserver.js:519:14)
    at process.emit (node:events:518:28)
    at emit (node:internal/child_process:950:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions