Skip to content

TypeError: e.target.toLowerCase is not a function #244

@HomyeeKing

Description

@HomyeeKing

the latest two versions(1.8.14/1.8.15) will cause build error, the parsed target is number:

// node_modules/pkg
{
  "options": {
    // ... 
    "module": 99,
    "target": 99,
    "jsx": 4
  }
}

after introduce get-tsconfig, it will treate copilerOptions.target as string
https://github.com/privatenumber/get-tsconfig/blob/865dd9a7866d4fc418daf11b55da4b8183e28664/src/parse-tsconfig/index.ts#L283

workaround

// package.json
"overrides":{
 "tsc-alias": "1.8.13"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions