Closed sebastiangug closed 5 years ago
hey @michaelbats
it's hard to see your intend. Is this a question or a bug report? either way, more information, or ideally a small repository outlining your problem would be very helpful.
Ah sorry, here's the repo: https://github.com/theodo/nestjs-serverless-demo
It's a typescript project and trying to build the files is throwing out fatal errors due to type issues in underlying node_modules, in this case nestjs and jest being the major ones. These two being quite major/popular libraries/frameworks, is there a way to bypass this behaviour?
Versions:
λ serverless --version
1.49.0 (Enterprise Plugin: 1.3.8, Platform SDK: 2.1.0)
λ tsc --version
Version 3.5.2
λ nest --version
6.6.3
λ npm --version
6.4.1
λ node --version
v10.15.3
"serverless-offline": "^3.31.3",
is this solving your issue? https://github.com/theodo/nestjs-serverless-demo/issues/1
@michaelbats feel free to re-open if you think this is a serverless-offline
issue.
There doesn't seem to be a workaround for this and even though it mentions 'using local tsconfig.json' it does not respect the excludes/includes directories mentioned in that local tsconfig.
Therefore it will throw a bunch of errors due to typings of node_modules, currently in my case, due to jest and nestjs: