Skip to content

[typescript]: tsconfig doesn't support allowSyntheticDefaultImports #973

@Hotell

Description

@Hotell

🐛 bug report

Description of the problem

tsconfig.json doesn't apply allowSyntheticDefaultImports flag

How has this issue affected you? What are you trying to accomplish?

I wanna use allowSyntheticDefaultImports with TypeScript to properly resolve 3rd party ambient type definitions so I can do import React from 'react' instead of import * as React from 'react'

Link to sandbox: https://codesandbox.io/s/03klozmyvn

Your Environment

Software Name/Version
Сodesandbox
Browser latest chrome
Operating System OSX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions