Skip to content

lib option in tsconfig.json is silently ignored #3647

@nsbarsukov

Description

@nsbarsukov

Description of Bug

Although tsconfig.json explicitly specifies "lib": ["ES2022"], StackBlitz still reports an error claiming that the target library does not include BigInt:

Error in src/app/app.ts (8:30)
Cannot find name 'BigInt'. 
Do you need to change your target library? 
Try changing the 'lib' compiler option to 'es2020' or later.

Since ES2022 already includes BigInt, this error should not occur. It appears that StackBlitz does not pick up the lib option from tsconfig.json.

Steps to Reproduce

Open https://stackblitz.com/edit/stackblitz-ignored-tsconfig-lib?file=src%2Fapp%2Fapp.ts,tsconfig.json%3AL20

Expected Behavior

StackBlitz should respect the lib option defined in tsconfig.json

Screenshots/Screencast

Image

Related issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions