jodit / jodit-react

React wrapper for Jodit
MIT License
368 stars 120 forks source link

Multiple module and variables not found #78

Open apoorvkarkare003 opened 4 years ago

apoorvkarkare003 commented 4 years ago

I am using yarn, so I installed it with yarn add jodit-react. I copied functional component example of read me file, and I am getting multiple errors like below:

Cannot find module 'autobind-decorator'. (node_modules/jodit/src/core/selection/select.ts)

node_modules/jodit/src/core/dom.ts' is not under 'rootDir'  (jodit/src/core/selection/select.ts)

Property 'component' does not exist on type 'HTMLElement'. (node_modules/jodit/src/core/helpers/utils/utils.ts)
Cannot find name 'isProd'.

Cannot find name 'appVersion'.

etc. What is the reason behind these errors?

PS: I am using typescript

DaveVanRijn commented 4 years ago

I'm experiencing the exact same problems. Sadly this prevents me from updating my clients webapp (which only just went in production) since all builds fail because of these errors. Any suggestions or workarounds until this is fixed?

matheusgrieger commented 4 years ago
Cannot find name 'isProd'.

Also reported in #77. Probably the same error that may be causing the other variables to not be found.