jodit / jodit/jodit-react

Multiple module and variables not found

Open
#78 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
406
Forks
131
Avg merge
2h 32m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the README functional-component example after installing jodit-react with yarn in a TypeScript project. Inspect the reported paths under node_modules/jodit/src and compare the package's dependencies and TypeScript configuration against the module, rootDir, and type errors. Done means the example builds without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.