Commit e1abdee
committed
fix(deps): declare advanced-cropper as explicit dependency
The Vercel production build has been failing for ~14 hours with:
./src/app/[locale]/frame-studio/_components/CustomStencil.tsx:5:1
Module not found: Can't resolve 'advanced-cropper'
`CustomStencil.tsx` imports `getStencilCoordinates` from
`advanced-cropper`, which is a transitive dependency of
`react-advanced-cropper` (pinned to ~0.17.1). Local dev worked because
npm's flat node_modules hoisting exposes transitive deps at the top
level, but Vercel uses pnpm (both lockfiles are tracked and pnpm wins
the tie-break), and pnpm's isolated layout blocks phantom imports of
undeclared dependencies.
Fix: declare `advanced-cropper: ~0.17.1` explicitly in package.json
so it's no longer a phantom import, and refresh both lockfiles.
package-lock.json also cleans up an extraneous `@swc/helpers` entry
that had been failing GitHub Actions CI.1 parent 9333223 commit e1abdee
3 files changed
Lines changed: 5 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments