Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Red file names in VS Code?  #95

Closed
Closed
@bcalvery

Description

@bcalvery

Whenever I open a file in VS Code I'm getting warnings/red text, which is really difficult to ignore. It seems to be caused by the first line import React from 'react', which is showing the error [ts] Module '"d:/Dev/stardust-react/node_modules/@types/react/index"' has no default export..
image
Changing the first line of the file to import * as React from 'react' does fix it. Is this an acceptable change to make in the files I'm working in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions