Prerequisites
Describe the bug
If one imports @wp-playground/storage via pnpm, it fails.
I believe you'd want to add crc-32 to dependencies in @wp-playground/storage/package.json to fix this.
It'd probably be worth checking other packages to ensure no similar problems.
Expected behavior
One should be able to import @wp-playground/storage with no error using pnpm.
Actual behavior
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'crc-32' imported from /Users/some_user/Library/pnpm/store/v10/links/@wp-playground/storage/3.1.35/e733024a20d0607b958cf19323accb72bcdf54a8706f74ccbbba9d5a518cbbc5/node_modules/@wp-playground/storage/index.js
Steps to reproduce
npm 11.9.0:
npm install @wp-playground/storage@3.1.35
node --input-type=module -e 'await import("@wp-playground/storage")' # succeeds
pnpm 10.30.3:
pnpm add @wp-playground/storage@3.1.35
node --input-type=module -e 'await import("@wp-playground/storage")' # fails
Or:
npx @wp-playground/cli # succeeds
pnpm dlx @wp-playground/cli # fails
Isolating the problem
Prerequisites
Describe the bug
If one imports
@wp-playground/storageviapnpm, it fails.I believe you'd want to add
crc-32todependenciesin@wp-playground/storage/package.jsonto fix this.It'd probably be worth checking other packages to ensure no similar problems.
Expected behavior
One should be able to import
@wp-playground/storagewith no error usingpnpm.Actual behavior
Steps to reproduce
npm 11.9.0:pnpm 10.30.3:Or:
Isolating the problem