Skip to content

Cannot find module 'solid-js' when typechecking with '@tanstack/query-devtools' #10421

@Svish

Description

@Svish

Describe the bug

After updating @tanstack/react-query-devtools from 5.91.3 to 5.96.2 I'm getting the following errors when running tsc (typescript is version 5.9.3) in my project:

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:1:26 - error TS2307: Cannot find module 'solid-js' or its corresponding type declarations.

1 import { Accessor } from 'solid-js';
                           ~~~~~~~~~~

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:2:32 - error TS2307: Cannot find module 'solid-js' or its corresponding type declarations.

2 import type { Component } from 'solid-js';
                                 ~~~~~~~~~~

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:3:25 - error TS2307: Cannot find module 'solid-js' or its corresponding type declarations.

3 import { Context } from 'solid-js';
                          ~~~~~~~~~~

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:4:21 - error TS2307: Cannot find module 'solid-js' or its corresponding type declarations.

4 import { JSX } from 'solid-js';
                      ~~~~~~~~~~

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:9:36 - error TS2307: Cannot find module '@solid-primitives/storage' or its corresponding type declarations.

9 import type { StorageObject } from '@solid-primitives/storage';
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:10:36 - error TS2307: Cannot find module '@solid-primitives/storage' or its corresponding type declarations.

10 import type { StorageSetter } from '@solid-primitives/storage';
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 6 errors in the same file, starting at: node_modules/@tanstack/query-devtools/build/_tsup-dts-rollup.d.ts:1

Your minimal, reproducible example

N/A

Steps to reproduce

  1. Install @tanstack/query-devtools@5.96.2
  2. Run tsc

Expected behavior

As a developer I expect there to be no type errors from my dependencies, especially ones related to solid-js in a project related to react.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

N/A

Tanstack Query adapter

None

TanStack Query version

v5.96.2

TypeScript version

v5.9.3

Additional context

No response

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