Semantic-ui-react: No exported members after Typescript upgrade to 2.9.1

Created on 12 Jun 2018  路  3Comments  路  Source: Semantic-Org/Semantic-UI-React

Bug Report

There seems to bee a compatibility issue with the typescript definitions of semantic-ui-react 0.81.1 and typescript 2.9.1

Steps

  1. Use Typescript 2.9.1 in a semantic-ui-react project
  2. Import a semantic component like usual
    import {Button, Icon} from 'semantic-ui-react'

    Expected Result

No errors like before

Actual Result

[ts] Module '"c:/path_to_project_folder/node_modules/semantic-ui-react/dist/commonjs/index"' has no exported member 'Icon'.
Typescript Errors

Version

Semantic-UI-React: 0.81.1
Typescript: 2.9.1
VSCode: 1.24.0

#

I found this related issue on the typescript git:
https://github.com/Microsoft/vscode/issues/51343

invalid

Most helpful comment

Oh you're right. I forgot to restart vscode after upgrading semantic from 0.80.1 to 0.81.1 :see_no_evil:
Sorry for wasting your time on that.

All 3 comments

馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

This was fixed in 0.81.1 (#2856, #2857). Will check again.

Oh you're right. I forgot to restart vscode after upgrading semantic from 0.80.1 to 0.81.1 :see_no_evil:
Sorry for wasting your time on that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laukaichung picture laukaichung  路  3Comments

eXtreme picture eXtreme  路  3Comments

jayphelps picture jayphelps  路  3Comments

SajagTiwari picture SajagTiwari  路  3Comments

AlvMF1 picture AlvMF1  路  3Comments