Skip to content
Discussions/App Development/Getting error while starting the UIForum ↗

Getting error while starting the UI

App Development4 posts587 views8 likesLast activity Oct 2020
RO
RockyOP
Sep 2020

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
AN
anthony
Sep 2020

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.

SH
Shaul
Sep 2020

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

AN
anthony
Oct 2020

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:masterdigital-asset:env-var-windows
opened 05:47PM - 30 Sep 20 UTC
← Back to Discussions