Skip to content

when toplevel package-specs get changed, its dependencies need rebuilt #5154

Closed
@Minnozz

Description

@Minnozz

Relevant sections of bsconfig.json:

  "sources": {
    "dir": "src",
    "subdirs": true
  },
  "package-specs": [
    {
      "module": "es6", // Works with "commonjs"
      "in-source": false
    }
  ],
  "bs-dependencies": [
    "rescript-jzon"
  ]

In a source file located at src/Subdir/Foo.res, I reference Jzon. In commonjs mode, this works fine. When I switch to es6 output, I get the following compiler error:

rescript: [84/118] src/Subdir/Foo-Project.cmj
FAILED: src/Subdir/Foo-Project.cmj

  We've found a bug for you!
  /home/username/project/src/Subdir/Foo.res

  Missing dependency Jzon in search path

On rescript v9.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions