adawg
adawg•3mo ago

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"
}
}
6 Replies
bartlomieju
bartlomieju•3mo ago
Deploy doesn't yet supported Deno v2 Most likely in about 2 weeks
cococore
cococore•3mo ago
@cdoremus bang
TheSadMidDeveloper
TheSadMidDeveloper•3mo ago
@cococore supported now?
cococore
cococore•3mo ago
@TheSadMidDeveloper nope. The super simple case works. But if you import something in main.ts file deno.lock has "version": "4" ,and this still raise error. on deploy I would like to report that i had success to deploy deno2 with hono. Pretty simple example works at the moment. how can we close this ... section of help, as solved ? @TheSadMidDeveloper 🌟
adawg
adawgOP•3mo ago
with hono? the OG support ticket was for Deno Deploy so it’ll probably get closed when deploy supports deno v2
cococore
cococore•3mo ago
yes, hono works now. Day or two before, just Deno worked, but with hono it was version 4 crush on deploy, or broken imports when manually changed to version 3. Forgot the file name. probably deno.lock

Did you find this page helpful?