@apphosting/build@0.1.7 requires yaml at runtime (dist/index.js:13) but does not list it in its dependencies. This works under npm's flat node_modules layout (where yaml is hoisted from a sibling package), but fails under pnpm's strict isolation:
Error: Cannot find module 'yaml'
Require stack:
- .../node_modules/@apphosting/build/dist/index.js
- .../node_modules/firebase-tools/lib/apphosting/localbuilds.js
- .../node_modules/firebase-tools/lib/deploy/apphosting/prepare.js
...
Steps to reproduce:
- Use pnpm with
hoist: false in a workspace
- Install
firebase-tools@15.13.0
- Run
firebase deploy --only functions
Expected: Deploy succeeds — @apphosting/build resolves yaml from its own dependencies.
Actual: Cannot find module 'yaml' error.
Workaround: Add a packageExtensions entry in pnpm-workspace.yaml:
packageExtensions:
"@apphosting/build@0":
dependencies:
yaml: "*"
Fix: Add yaml to dependencies in packages/@apphosting/build/package.json.
@apphosting/build@0.1.7requiresyamlat runtime (dist/index.js:13) but does not list it in itsdependencies. This works under npm's flatnode_moduleslayout (whereyamlis hoisted from a sibling package), but fails under pnpm's strict isolation:Steps to reproduce:
hoist: falsein a workspacefirebase-tools@15.13.0firebase deploy --only functionsExpected: Deploy succeeds —
@apphosting/buildresolvesyamlfrom its own dependencies.Actual:
Cannot find module 'yaml'error.Workaround: Add a
packageExtensionsentry inpnpm-workspace.yaml:Fix: Add
yamltodependenciesinpackages/@apphosting/build/package.json.