Skip to content
CCPEDIAby Unity Nodes
App Development

Getting error while starting the UI

4 posts614 views8 likesLast activity Oct 2020

  1. RockyOP 3

    I am getting error while running the Create DAML App example in windows 10. What could be the possible reason?

    The UI can then be started from a 3rd terminal window with:

    cd create-daml-app/ui
    REACT_APP_LEDGER_ID=participant1 yarn start

    REACT_APP_LEDGER_ID=participant1 : The term ‘REACT_APP_LEDGER_ID=participant1’ is not recognized as the name of a cmdlet, function, script file,
    or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1

    • REACT_APP_LEDGER_ID=participant1 yarn start
    •   + CategoryInfo          : ObjectNotFound: (REACT_APP_LEDGER_ID=participant1:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
  2. anthony 4

    Hi Rocky,

    It looks like you’re using Powershell on Windows, if that’s the case you can do the following:

    cd create-daml-app/ui
    $env:REACT_APP_LEDGER_ID="participant1"
    yarn start
    

    We also will update the docs to note this difference.

  3. Shaul 1

    Welcome to the DAML community @Rocky, great to have you here!

  4. anthony

    And added a note on the Katacoda scenarios. Thanks @Rocky!

    github.com/digital-asset/daml-katacoda

    Let users know how to set environment variables on Windows

    digital-asset:master ← digital-asset:env-var-windows
    opened 05:47PM - 30 Sep 20 UTC