adawg
adawg
DDeno
Created by adawg on 10/5/2024 in #help
Deno v2 RC not deploying properly?
I have a pretty basic deno v2 app with a simple endpoint - when I deno install, it automatically adds the deno lock version as "4". To deploy successfully I have to manually downgrade it to "3" for it to work. Then, when I hit my 1 endpoint, it say's it's not able to find one of my deps which is pdf-parse
Error parsing resume: Error: Failed to load pdf-parse. Please install it with eg. `npm install pdf-parse`.
Error parsing resume: Error: Failed to load pdf-parse. Please install it with eg. `npm install pdf-parse`.
despite having it in my deno.json and deno-lock.json
{
"tasks": {
"dev": "deno run --watch -A main.ts"
},
"imports": {
"@langchain/community": "npm:@langchain/community@^0.3.4",
"@langchain/core": "npm:@langchain/core@^0.3.7",
"@langchain/openai": "npm:@langchain/openai@^0.3.5",
"@std/assert": "jsr:@std/assert@1",
"langchain": "npm:langchain@^0.3.2",
"pdf-parse": "npm:pdf-parse@^1.1.1"
}
}
{
"tasks": {
"dev": "deno run --watch -A main.ts"
},
"imports": {
"@langchain/community": "npm:@langchain/community@^0.3.4",
"@langchain/core": "npm:@langchain/core@^0.3.7",
"@langchain/openai": "npm:@langchain/openai@^0.3.5",
"@std/assert": "jsr:@std/assert@1",
"langchain": "npm:langchain@^0.3.2",
"pdf-parse": "npm:pdf-parse@^1.1.1"
}
}
11 replies