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.
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.