Not compatible with rescript-react version 0.11

Open
#33 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the compilation failure in src/Dnd__DndManager.res around lines 1586-1602 using rescript-react 0.11. Read the linked ReScript React migration guidance and compare the Context.Provider usage with that version. Done means the project compiles successfully with rescript-react 0.11.

Written by the indexing model from the issue text.

Description

Compilation throws this error:

FAILED: src/Dnd__DndManager.cmj

  We've found a bug for you!
  /home/development/app/node_modules/rescript-dnd/src/Dnd__DndManager.res:1586:13-1602:7

  1584 ┆ 
  1585 ┆ <Context.Provider
  1586 ┆   value={
  1587 ┆     status: state.status,
     . ┆ ...
  1601 ┆     startDragging: collectEntries,
  1602 ┆   }>
  1603 ┆   children
  1604 ┆ </Context.Provider>

  The record field value can't be found.
  
  If it's defined in another module or file, bring it into scope by:
  - Prefixing it with said module name: TheModule.value
  - Or specifying its type: let theValue: TheModule.theType = {value: VALUE}

For more info: https://rescript-lang.org/docs/react/latest/migrate-react

Dominant language
ReScript
Stars
119
Forks
14
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from shakacode/rescript-dnd

All issues in shakacode/rescript-dnd

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.