Skip to content
CCPEDIAby Unity Nodes
App Development

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

3 posts87 views4 likesLast activity Jul 2024

  1. jvelasco.intellecteuOP

    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

  2. WallaceKelly 1

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

    @jvelasco.intellecteu, thanks for reporting!

  3. Matteo_Limberto 3

    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