pdfme icon indicating copy to clipboard operation
pdfme copied to clipboard

Dependency was not found. (@pdfme/schemas/utils)

Open Hosam928 opened this issue 1 year ago • 4 comments

Describe the bug

[INFO] This dependency was not found: [INFO] [INFO] * @pdfme/schemas/utils in ./node_modules/@pdfme/generator/dist/esm/src/generate.js

To Reproduce

I have the following libraries installed: "@pdfme/common": "^5.2.0", "@pdfme/generator": "^5.2.0", "@pdfme/pdf-lib": "^1.18.3", "@pdfme/schemas": "^5.2.0", "@pdfme/ui": "^5.2.0",

When I run npm run build, I get the following error: [INFO] This dependency was not found: [INFO] [INFO] * @pdfme/schemas/utils in ./node_modules/@pdfme/generator/dist/esm/src/generate.js [INFO] [ERROR] ERROR Build failed with errors. [INFO] To install it, you can run: npm install --save @pdfme/schemas/utils

I install the @pdfme/schemas/utils library according to the console message, and the error persists.

Expected behavior

That the npm run build can be completed without any error.

Your Environment

- pdfme package(@pdfme/generator or @pdfme/ui): @pdfme/generator
- pdfme version: 5.2.0
- Operating system: MacOS Sonoma 14.7
- Node.js version or Browser name & version: 16.17.0

Your Error Log

[INFO] This dependency was not found:
[INFO] 
[INFO] * @pdfme/schemas/utils in ./node_modules/@pdfme/generator/dist/esm/src/generate.js
[INFO] 
[ERROR]  ERROR  Build failed with errors.
[INFO] To install it, you can run: npm install --save @pdfme/schemas/utils

Additional context

No response

Hosam928 avatar Nov 12 '24 16:11 Hosam928

@Hosam928 Could you give me the reproducible repo?

hand-dot avatar Nov 14 '24 12:11 hand-dot

@Hosam928 Could you give me the reproducible repo?

Hi @hand-dot , It's in a private repository, unfortunately I don't have permissions to share it.

I can give you more details, to see if that gives you any idea what might be going wrong:

It's a project in AEM, it uses:

  • “vue: ‘2.6.10’.
  • “webpack-cli”:“^3.3.10”,
  • “webpack”: “^4.41.5”,

Hosam928 avatar Nov 14 '24 15:11 Hosam928

I am having the same problem, I also have a vue2 application

ekin-kar avatar Dec 17 '24 14:12 ekin-kar

npm i @pdfme/schemas

I had the same error with angular application, installing @pdfme/schemas fixed it.

amirkaplan avatar Jan 04 '25 21:01 amirkaplan