Getting error while starting the UI
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
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.
Welcome to the DAML community @Rocky, great to have you here!
And added a note on the Katacoda scenarios. Thanks @Rocky!
github.com/digital-asset/daml-katacodaLet users know how to set environment variables on Windows
digital-asset:master ← digital-asset:env-var-windows