Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve 'spawn-sync' #216

Open
adamhalasz opened this issue Oct 24, 2024 · 0 comments
Open

Can't resolve 'spawn-sync' #216

adamhalasz opened this issue Oct 24, 2024 · 0 comments
Labels

Comments

@adamhalasz
Copy link

adamhalasz commented Oct 24, 2024

Describe the bug
When I import fromBuffer from pdf2pic and launch my app it shows this error:

Module not found: Can't resolve 'spawn-sync' in '/Users/adam/github/my_app/app/node_modules/.pnpm/[email protected]/node_modules/cross-spawn'

Import trace for requested module:
./node_modules/.pnpm/[email protected]/node_modules/cross-spawn/index.js
./node_modules/.pnpm/[email protected]/node_modules/gm/lib/compare.js
./node_modules/.pnpm/[email protected]/node_modules/gm/index.js
./node_modules/.pnpm/[email protected]/node_modules/pdf2pic/dist/index.js
./src/app/lib/utils/pdftopic.ts

To Reproduce
Steps to reproduce the behavior:

import { fromBuffer } from "pdf2pic";

Expected behavior
It should not show an error.

Environment;

  • OS: macOS Ventura 13.1 (Apple M1 Pro)
  • pdf2pic version ^3.1.3
  • graphicsmagick/imagemagick version: 1.3.45 2024-08-27
  • ghostscript version: 10.04.0
  • Node.js: v22.5.1
  • Next.js: 14.1.0
@adamhalasz adamhalasz added the bug label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant