Skip to content

New dict literal syntax fails with The module or file Caml_dict can't be found. #7017

Closed
@mediremi

Description

@mediremi

I'm trying to use the new dict literal syntax with ReScript version v12.0.0-alpha.2 but the following code

let d = dict{
  "hello": "world",
}

results in this error:

The module or file Caml_dict can't be found.
  - If it's a third-party dependency:
    - Did you add it to the "bs-dependencies" or "bs-dev-dependencies" in bsconfig.json?
  - Did you include the file's directory to the "sources" in bsconfig.json?

Playground link for repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions