Hi, this is Kayvan, starting with daml.
I just finished the tutorial and 1/2 way thru the daml-101 video series. My environment is nixos and so far the only issue I’ve had is in the Run the App section. This instruction generated a compile error in my env:
npm install
npm start
Here is the error:
Failed to compile.
./src/components/MainScreen.tsx
Module not found: Can't resolve '@daml.js/MySecondDamlApp' in
But changing it to:
npm install --force
npm start
worked very nicely as described in docs.
By the way, the video series has been an amazing asset for me.
Thank,
Kayvan
Hi @kayvank welcome to the Daml Forum and congratulations on getting the application to work
Interestingly enough, I did the same prodedure to see if I could reproduce your failure, which I did not, however I did get a Node & OpenSSL related failure.
Look forward to seeing you progress, also feel free to shout out if there are any issues with the any of the learning materials or if you need help
Thank you @Ben_M for taking a look. FYI, I have no issue currently as I am completing the tutorial and the video series.
For completeness, I build the daml project from github repo and changed my daml version in daml.yaml to 0.0.0 per instruction. I still and got the same compile error from
daml build
npm install
npm start
FYI, I am using very crude nix-shell to satisfy the daml requirements, here is my shell.nix
with import <nixpkgs> {};
mkShell {
buildInputs = [
pkgs.jdk11
pkgs.nodejs
];
shellHooks = ''
set -o vi
export JAVA_HOME=${jdk.home}
export PATH=$PATH:~/.daml/bin
'';
}
Hi Chris & Ben
I had a follow up email last night that has been tagged as “Spam” and caught in the Spam filter. Any chance you could take a look please?