If I enter the following code in a node step… and test it, I get an error notification, but I cannot see the error anywhere to know what it is ?
import pdf from 'pdf-parse';
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return 'test'
},
});
I know it’s the import line, as if I remove that it works… just not sure what is failing… which leads to the second question… I have tried both the require and import methods for PDF-parse, neither seem to work, any advice ?
I thought it might have been something todo with binaries, as I saw issues in other posts about puppeteer… but I checked and it’s dependency’s are node-ensure and debug which are not binary.
Is there anyway to get to see the error that happens when I try and test that code ?
I looked at the other PDF options in PD, as well as other services, but they don’t parse the source PDF I am working with correctly (lots of tables and pages).
I can try and see if pdf-parse works in an arm Lambda, and circle back if it does.