RayyR
Convex Community2y ago
4 replies
Rayy

Error while trying to import third party libraries.

I have no idea why am I getting this error

✖ Error: Unable to push deployment config to https://content-tortoise-560.convex.cloud
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
    error:
Uncaught Failed to analyze openai.js: ENOENT: no such file or directory, open './test/data/05-versions-space.pdf'


when trying to import the below libraries

"use node"

const fs = require("fs");
const pdf = require("pdf-parse");


I am already using the "use node" declarative as mentioned in the docs.
Was this page helpful?