Topic: MDB5 React Pro Typescript setup error (TS1434: Unexpected keyword or identifier)
scubadrew priority asked 2 years ago
Expected behavior
Following https://mdbootstrap.com/docs/react/pro/installation/#section-typescript-implementation
Directions indicate:
Inside new d.ts file you have to create a declaration module for mdb-react-ui-kit.
INDEX.D.TS
declaration module 'mdb-react-ui-kit'{
...
}
I get an error: TS1434: Unexpected keyword or identifier.
on the word declaration
Resources (screenshots, code snippets etc.)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB React
- MDB Version: MDB5 4.1.0
- Device: Mac
- Browser: Electron
- OS: MacOS
- Provided sample code: Yes
- Provided link: Yes