Skip to content

[email protected] does not declare runtime dependency destr #808

Closed

Description

@birkskyum

Environment

  • unstorage: 2.0.0-alpha.8
  • Node.js: 26.3.0
  • npm: 11.17.0
  • pnpm: 11.17.0

Reproduction

mkdir unstorage-repro
cd unstorage-repro
npm init -y
npm install [email protected]
node --input-type=module -e 'import("unstorage")'

Current behavior

Importing the package from a clean install fails:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'destr' imported from .../node_modules/unstorage/dist/index.mjs

The package root imports destr at runtime:

https://github.com/unjs/unstorage/blob/main/src/storage.ts#L1

However, destr is currently listed only in devDependencies:

https://github.com/unjs/unstorage/blob/main/package.json#L35-L64

This also reproduces with a clean pnpm install. It surfaced while testing [email protected], which depends on unstorage@^2.0.0-alpha.8, for solidjs/solid-start#2288.

Expected behavior

A clean consumer install should include every dependency required to import unstorage.

Workaround

Installing destr directly allows the import and the downstream Nitro build to proceed:

npm install [email protected]

Activity

  1. pi0 commented on Aug 20, 2026

    @pi0
    Member

    thanks for notice fixed in alpha.9 bumping in nitro shortly

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