Skip to content

2.0.0-beta.17: Wrong path to @solidjs/web/storage types #2873

Closed

Description

@katywings

Describe the bug

The path to the @solidjs/web/storage types in

"types": "./storage/types/index.d.ts",
is incorrect, leading to an error when e.g. trying to build @solidjs/start with the upgrade-to-solid-2-beta branch:

src/fns/handler.ts(5,37): error TS7016: Could not find a declaration file for module '@solidjs/web/storage'. 'xyz/solid-start2/node_module…
│   If the '@solidjs/web' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@solidjs/web/storage';`
│ src/fns/server.ts(2,37): error TS7016: Could not find a declaration file for module '@solidjs/web/storage'. 'xyz/solid-start2/node_modules…
│   If the '@solidjs/web' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@solidjs/web/storage';`
│ src/server/fetchEvent.ts(2,37): error TS7016: Could not find a declaration file for module '@solidjs/web/storage'. 'xyz/solid-start2/node_…
│   If the '@solidjs/web' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@solidjs/web/storage';`

Your Example Website or App

https://github.com/solidjs/solid-start/tree/upgrade-to-solid-2-beta

Steps to Reproduce the Bug or Issue

  1. Clone the start repo with the upgrade-to-solid-2-beta branch
  2. pnpm dedupe
  3. pnpm build

Expected behavior

The path should be ./storage/types/storage/src/index.d.ts where the types currently can be found at (https://app.unpkg.com/@solidjs/[email protected]/files/storage/types/storage/src/index.d.ts).

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Firefox
  • Version: 2.0.0-beta.17

Additional context

No response

Activity

  1. changed the title [-]Wrong path to @solidjs/web/storage types[/-] [+]2.0.0-beta.17: Wrong path to @solidjs/web/storage types[/+] on Jul 11, 2026
  2. added a commit that references this issue on Jul 13, 2026
    43c537a
  3. ryansolid commented on Jul 13, 2026

    @ryansolid
    Member

    Fixed by #2875 plus follow-up 43c537a on next (the rootDir change alone broke the build because the @solidjs/web paths mapping pulled ../../src into the program; it now resolves against the built declarations). storage/types/index.d.ts is emitted at the advertised path. Will ship in the next beta.

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