So I'm trying to use the SecretAgent web scraper and it works when I run node app.js but when I deploy my file structure to Heroku, it doesn't work and I get the following massive error:
https://i.stack.imgur.com/YNygo.jpg
https://i.stack.imgur.com/KwVr4.jpg
https://i.stack.imgur.com/iSKKv.jpg
My call w/ SecretAgent looks like this:
const agent = require('secret-agent');
(async () => {
await agent.goto('https://example.org');
const title = await agent.document.title;
const intro = await agent.document.querySelector('p').textContent;
console.log("intro is " + intro);
await agent.close();
})();
I also tried entering the follow sudo command after cd'ing into the server folder but ended up getting the error 'UnhandledErrorOrRejection', "clientError: 'TypeError: coreTab.goto is not a function'":
sudo $(npx puppet-install-deps)
This is where I currently am. Any help would be much appreciated. If I can clarify the question better, let me know--thank you for all of your help!