My serverless project is working fine on local when I run it using sls offline start
but when I'm trying to deploy it via the command line using serverless deploy
I'm getting the following error stack.
internal/modules/cjs/loader.js:1030
throw err;
^
Error: Cannot find module '/Users/rasikraj/Desktop/aws-social/--max-old-space-size=2048'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1027:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:896:27)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1375:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
What could be causing this issue and how can I resolve it ?
I'm using Sevrerless version :
Framework Core: 2.19.0 (standalone)
Plugin: 4.4.2
SDK: 2.3.2
Components: 3.4.7
Node v12.20.1
and typescript
and this boilerplate https://github.com/AnomalyInnovations/serverless-typescript-starter