# Dependencies error message after deploying

**URL:** <https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569>\
**Category:** Serverless Framework\
**Created:** [September 16, 2020, 6:53pm UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569 "2020-09-16T18:53:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grahamu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/grahamu/32/4560_2.png) [@grahamu](https://forum.serverless.com/u/grahamu)\
**Post date:** [September 16, 2020, 6:53pm UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569/1 "2020-09-16T18:53:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![svarughese91](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/svarughese91/32/4562_2.png) [@svarughese91](https://forum.serverless.com/u/svarughese91)\
**Post date:** [September 17, 2020, 4:45am UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569/2 "2020-09-17T04:45:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dmyar](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dmyar](https://forum.serverless.com/u/dmyar)\
**Post date:** [September 17, 2020, 12:16pm UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569/3 "2020-09-17T12:16:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![grath90](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@grath90](https://forum.serverless.com/u/grath90)\
**Post date:** [September 17, 2020, 9:17pm UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569/4 "2020-09-17T21:17:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Strafer14](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/strafer14/32/4751_2.png) [@Strafer14](https://forum.serverless.com/u/Strafer14)\
**Post date:** [November 21, 2020, 3:23pm UTC](https://forum.serverless.com/t/dependencies-error-message-after-deploying/12569/5 "2020-11-21T15:23:58Z")

</div>

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.
