Dependency was not found. (@pdfme/schemas/utils)
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 Could you give me the reproducible repo?
@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”,
I am having the same problem, I also have a vue2 application
npm i @pdfme/schemas
I had the same error with angular application, installing @pdfme/schemas fixed it.