yakovmeister / pdf2image

A utility for converting pdf to image and base64 format.
MIT License
435 stars 141 forks source link

Can't resolve 'spawn-sync' #216

Open adamhalasz opened 1 month ago

adamhalasz commented 1 month ago

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/cross-spawn@4.0.2/node_modules/cross-spawn'

Import trace for requested module:
./node_modules/.pnpm/cross-spawn@4.0.2/node_modules/cross-spawn/index.js
./node_modules/.pnpm/gm@1.25.0/node_modules/gm/lib/compare.js
./node_modules/.pnpm/gm@1.25.0/node_modules/gm/index.js
./node_modules/.pnpm/pdf2pic@3.1.3/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;