Codegen js failing with new 2.9,1 sdk (daml finance dependencies)

Hi,

I’m trying to upgrade a daml project from sdk 2.8.0 to 2.9.1 which has daml finance packages as data-dependencies. I can daml build without errors, however when I run daml codegen js I get the error bellow.

daml2js: user error (Duplicate name 'daml-prim-0.0.0' for different packages detected)
daml-helper: Received ExitFailure 1 when running
sdk-version: 2.9.1
name: my-project
version: 0.0.1
source: src/daml
dependencies:
  - daml-prim
  - daml-stdlib
  - daml-script
data-dependencies:
  - ./.lib/contingent-claims-core-2.0.1.dar
  - ./.lib/contingent-claims-lifecycle-2.0.1.dar
  ...

Best
Jose

I was able to reproduce this and created an issue to track.

@jvelasco.intellecteu, thanks for reporting!

1 Like

Hi @jvelasco.intellecteu,

thanks for reporting this.

We are aware of this issue and it will be fixed with the upcoming 2.9.3 release.

Best,
Matteo

3 Likes