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.