Topic: MDB5 React Pro Typescript setup error (TS1434: Unexpected keyword or identifier)

scubadrew priority asked 1 year 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.)

enter image description here



We will check and try to fix this error before the next release. Thanks for reporting!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • 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