Error running the app on Getting Started with Daml
App Development2 posts330 views2 likesLast activity Feb 2021
YU
Yuling_MaOP
Feb 2021https://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.
CO
cocreature
Feb 2021Hi @Yuling_Ma, this error suggest that the generated JavaScript package did not get installed.
Make sure that you ran through the following 2 steps:
- Run
daml startfrom 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)
- Once
daml starthas started up, runnpm installfrom theuidirectory. This will install the package@daml.js/create-daml-appwhich has been generated bydaml start(and a bunch of other dependencies).