Skip to content

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

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/web@2.0.0-beta.17/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

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