Hello there, new comer to daml

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

1 Like

Hi @kayvank welcome to the Daml Forum and congratulations on getting the application to work :+1:t2:

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 :wave:t2:

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
'';
}

Here the resulted system specifics:

$ java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+0-adhoc..source)
OpenJDK 64-Bit Server VM (build 11.0.12+0-adhoc..source, mixed mode)


$ npm version
{
  npm: '8.3.1',
  node: '16.14.0',
  v8: '9.4.146.24-node.20',
  uv: '1.43.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '93',
  nghttp2: '1.45.1',
  napi: '8',
  llhttp: '6.0.4',
  openssl: '1.1.1m',
  cldr: '40.0',
  icu: '70.1',
  tz: '2021a3',
  unicode: '14.0'
}


ll ~/.daml/sdk
total 8
dr-xr-xr-x 11 kayvan users 4096 Aug  4 15:14 0.0.0
dr-xr-xr-x 11 kayvan users 4096 Aug  3 20:47 2.3.2

Hi Kayvan - Welcome to the Daml Community!

Hopefully you’ve discovered most of the training assets on the Become a Daml Developer page. As Ben suggested, reach out anytime you need help!
Chris

Chris Olson
Daml Developer Relations

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?

Released, sorry for the delay.