serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

Plugin throws `Cannot read property 'replace' of undefined` when using `extends` on tsconfig

Open theGlenn opened this issue 7 years ago • 0 comments

Hi,

Serverless commands throws Cannot read property 'replace' of undefined when using the extend property with local file eg. "extends": "../../tsconfig.settings.json",

Can be reproduced with the following file.

{
  "extends": "../../tsconfig.settings.json",
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "lib": [ "es6", "dom" ],
    "moduleResolution": "node",
    "rootDir": "./src",
    "outDir": ".build",
    "sourceMap": true,
    "allowJs": true,
    "noImplicitAny": true,
    "noUnusedLocals": true,
    "noImplicitThis": true,
    "strictNullChecks": true,
    "noImplicitReturns": true,
    "preserveConstEnums": true,
    "suppressImplicitAnyIndexErrors": true,
    "forceConsistentCasingInFileNames": true
  },
  "exclude": [
    "node_modules",
    "build",
  ],
  "types": [ "typePatches" ]
}

theGlenn avatar Oct 12 '18 10:10 theGlenn