Dependencies error message after deploying

I had a simple project that was deploying without errors, but I have recently reinstalled my laptop and having re-setup my project, I have started using the serverless dashboard and am now encounter an error when deploying.

The deployment actually works, but at the end of the output I see:

Publishing service to the Serverless Dashboard...
TypeError: Cannot read property 'fetch' of undefined
    at parseDeploymentData (/home/grahamu/.config/yarn/global/node_modules/@serverless/enterprise-plugin/lib/deployment/parse.js:159:65)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at /home/grahamu/.config/yarn/global/node_modules/@serverless/enterprise-plugin/lib/errorHandler.js:20:24
 
  Type Error ---------------------------------------------
 
  TypeError: Cannot read property 'fetch' of undefined
      at parseDeploymentData (/home/grahamu/.config/yarn/global/node_modules/@serverless/enterprise-plugin/lib/deployment/parse.js:159:65)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at module.exports (/home/grahamu/.config/yarn/global/node_modules/@serverless/enterprise-plugin/lib/deployment/save.js:14:22)
      at ServerlessEnterprisePlugin.<anonymous> (/home/grahamu/.config/yarn/global/node_modules/@serverless/enterprise-plugin/lib/plugin.js:446:13)

So it seems that deploying, is using the globally installed serverless framework (installed as per instructions) but then failing to find dependencies local to the project (node-fetch).

Like I say the deploy works, so what is this error? Happening since re-installing laptop and starting to use serverless dashboard.

Thanks.

I am getting this same error as well. I was not getting this error before yesterday and now it is. Not sure what happened

1 Like

Same issue. Everything deploys fine, but GitHub actions display merge as a failure.

1 Like

I’m also getting the same error. Happened to me after upgrading the CLI.

1 Like

Me too, I’ve tried debugging it and got that the originRemote is { name: ‘origin’ } however it does not have the key “refs” and that’s why we get this error.