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.
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.
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:
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)
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).