jodit / jodit/jodit-react

Type error: Argument of type 'string' is not assignable to parameter of type 'never'.

Open
#137 1 comment 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

Error in 'yarn build' using next with ts

./node_modules/jodit\src\core\helpers\utils\utils.ts:187:14
Type error: Argument of type 'string' is not assignable to parameter of type 'never'.

185 |
186 | for (const key in obj) {

187 | props.push(key);
| ^
188 | }
189 |
190 | return props;
info - Creating an optimized production build .s

??????

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

Reproduce the failure with yarn build and inspect node_modules/jodit/src/core/helpers/utils/utils.ts around line 187, where props.push(key) triggers the TypeScript error. Done means the production build completes without this type error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.