Serverless Typescript Error : TypeError: Cannot read property '1' of null

1k views Asked by At

Serverless-Webpack Typescript Error "serverless-webpack" error .

Getting Error: Type Error ---------------------------------------------

TypeError: Cannot read property '1' of null

Stack - Serverless backend with Typescript,Node.js and AWS Lambda

Using serverless-webpack package for my current stack,it was working till last day, suddenly it stopped working and getting below error. Tried downgrading version for serverless-webpack but still getting error.

1

There are 1 answers

0
Stefan Drl On

What about node and npm versions? I've had some issues when switching to node.14 and npm.7. What I've found on the internet, there are some issues with npm.7. If this is your case as well, downgrade npm.