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

Unable to load pdf-parse.d.ts: The system cannot find the path specified. (os error 3) #25682

Open
mcgear opened this issue Sep 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working correctly jsr Issues or feature requests relating to JSR.io tsc related to the TypeScript tsc compiler

Comments

@mcgear
Copy link

mcgear commented Sep 17, 2024

Version: Deno 1.46.3

I am doing some work with langchain, and trying to create a JSR package that contains calls to PDFLoader. THe issue i am running into is:

error: Uncaught Error: Unable to load C:\Users\MyUser\AppData\Local\deno\npm\registry.npmjs.org\@langchain\community\0.3.0\src\types\pdf-parse.d.ts: The system cannot find the path specified. (os error 3)
    at Object.getSourceFile (ext:deno_tsc/99_main_compiler.js:648:28)
    at findSourceFileWorker (ext:deno_tsc/00_typescript.js:126064:23)
    at findSourceFile (ext:deno_tsc/00_typescript.js:125980:20)
    at ext:deno_tsc/00_typescript.js:125929:22
    at getSourceFileFromReferenceWorker (ext:deno_tsc/00_typescript.js:125900:26)
    at processSourceFile (ext:deno_tsc/00_typescript.js:125927:5)
    at ext:deno_tsc/00_typescript.js:126221:7
    at forEach (ext:deno_tsc/00_typescript.js:2388:22)
    at processReferencedFiles (ext:deno_tsc/00_typescript.js:126220:5)
    at findSourceFileWorker (ext:deno_tsc/00_typescript.js:126123:9)

Previously, this was resolved by using a call to import * as _parse from "npm:[email protected]"; somewhere in the imports, but that no longer seems to fix the issue... at least it doesn't fix it in the context of tests or deno publish commands.

@lucacasonato lucacasonato added bug Something isn't working correctly tsc related to the TypeScript tsc compiler jsr Issues or feature requests relating to JSR.io labels Sep 17, 2024
@nayeemrmn
Copy link
Collaborator

Can you share your code or a small reproduction? Namely the list of dependencies.

@nayeemrmn nayeemrmn self-assigned this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly jsr Issues or feature requests relating to JSR.io tsc related to the TypeScript tsc compiler
Projects
None yet
Development

No branches or pull requests

3 participants