jodit / jodit/jodit-react

TypeError: Cannot read property 'make' of undefined

Open
#107 0 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

This error occurred in a project that uses TypeScript with React.

I realize this issue has already been created. However, I still get this error even though i've upgraded to the most recent versions of both Jodit and Jodit-react...

"jodit": "^3.4.29",
"jodit-react": "^1.0.49",
import JoditEditor from 'jodit-react';

 const component: React.fc = () => {
   const [content, setContent] = React.useState('');
   const editor = React.useRef(null);
   const config: any = {
     readonly: false, // all options from https://xdsoft.net/jodit/doc/
   };
   return (
     <>
       <JoditEditor
           ref={editor}
           value={content}
           config={config}
           onBlur={newContent => setContent(newContent)}
           onChange={newContent => {}}
       />

--------------

The above is the boilerplate from the ReadMe.
Please help!

Screen Shot 2020-11-10 at 16 36 23

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 reported TypeError with the TypeScript and React example from the issue, using the stated jodit and jodit-react versions. Read the JoditEditor usage described in the README and trace the failing initialization; done means the example renders without the undefined make error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.