Skip to content
CCPEDIAby Unity Nodes
App Development

Error running the app on Getting Started with Daml

2 posts335 views2 likesLast activity Feb 2021

  1. Yuling_MaOP 1

    https://docs.daml.com/getting-started/index.html

    Got error when starting react server -

    ./src/components/LoginScreen.tsx
    Module not found: Can't resolve '@daml.js/create-daml-app'
    

    Please advise.

  2. cocreature 1

    Hi @Yuling_Ma, this error suggest that the generated JavaScript package did not get installed.

    Make sure that you ran through the following 2 steps:

    1. Run daml start from the root of your project. You should see lines similar to this one (the hash will be different)
    Generating create-daml-app-0.1.0 (hash: 17996e5bf0b56a29f6dd55fcf014b052e73a30a396ca091036db1ae4a02740f0)
    
    1. Once daml start has started up, run npm install from the ui directory. This will install the package @daml.js/create-daml-app which has been generated by daml start (and a bunch of other dependencies).