rsuite / responsive-nav

A tab component based on rsuite nav enhancements
https://rsuite.github.io/responsive-nav/
MIT License
3 stars 10 forks source link

Build Error #5

Closed Anas-Abdelhadi closed 4 years ago

Anas-Abdelhadi commented 4 years ago

When trying to run build, or during development, in a typescript project I receive the following errors:

ERROR in D:/playground/Project/app/node_modules/@rsuite/responsive-nav/index.d.ts(26,1): TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. ERROR in D:/playground/Project/app/node_modules/@rsuite/responsive-nav/index.d.ts(26,32): TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.

simonguo commented 4 years ago

Which version are you using?

Anas-Abdelhadi commented 4 years ago

TS: 3.5.1 @rsuite/responsive-nav: 0.0.6 rsuite : 4.2.0 react : 16.8.6

simonguo commented 4 years ago
npm install @rsuite/responsive-nav@0.0.7
Anas-Abdelhadi commented 4 years ago

Thanks a lot. It's resolved now.