rescript-lang / rescript-lang/rescript
Missing dependency in search path when using dynamic import
Open
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 7.5k
- Forks
- 485
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 55
Description
As soon as I use Js.import() I get this error:
Missing dependency X in search path.
where X is Js.import(X.make) (following the lazy component docs).
Full minimal repro here: https://github.com/benadamstyles/rescript-js-import-repro.
Short forum discussion here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal reproduction at rescript-js-import-repro and the Js.import(X.make) entry point described in the issue. Compare the lazy component documentation with the compiler's dynamic-import handling and search-path diagnostics. Done means the reproduction no longer reports a missing dependency when using Js.import(X.make).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, ocaml
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100