academia-de-codigo / react-semantic-toasts

React Semantic UI notifications library
MIT License
87 stars 31 forks source link

Compilation fails with "Statements are not allowed in ambient contexts. TS1036" #36

Closed PawelJ-PL closed 5 years ago

PawelJ-PL commented 5 years ago

Hi

I'm trying to use library in my project, but TS compiler fails with following error:

TypeScript error in node_modules/react-semantic-toasts/build/index.d.ts(35,2):
Statements are not allowed in ambient contexts.  TS1036

    33 | 
    34 |     export { SemanticToastContainer, toast, ToastOptions }
  > 35 | };
       |  ^
    36 | 

I'm using TypeScript 3.5.3 and react-semantic-toasts 0.6.2

PawelJ-PL commented 5 years ago

Prepared PR, which fixes problem: https://github.com/academia-de-codigo/react-semantic-toasts/pull/37

ferrao commented 5 years ago

@PawelJ-PL please try 0.6.3

PawelJ-PL commented 5 years ago

I've checked version 0.6.3 and everything looks fine. Finally I was able to compile project.