Reach run Error Elifecycle

Hello,

I’m working through the Reach tutorials
(Algorand Developer Portal)

and when i get to the “./reach run” part of the tutorial, i get an Error.

[2021-01-11T08:20:28.231Z] DEBUG: waitPort complete
[2021-01-11T08:20:28.239Z] DEBUG: RSBK: connectAccount
[2021-01-11T08:20:28.240Z] DEBUG: Setting algod client to default
[2021-01-11T08:20:28.240Z] DEBUG: wait1port
{
  host: 'algorand-devnet',
  port: 4180,
  output: 'silent',
  timeout: 60000
}
[2021-01-11T08:20:28.241Z] DEBUG: waitPort complete
before: balance: 0 algos
[2021-01-11T08:20:28.274Z] DEBUG: NLY5: connectAccount
[2021-01-11T08:20:28.276Z] DEBUG: fillTxn: getting params
[2021-01-11T08:20:28.279Z] DEBUG: fillTxn: got params: {"flatFee":false,"fee":0,"firstRound":236,"lastRound":1236,"genesisID":"devnet-v1","genesisHash":"5o9fo9Y65tWHXiS+0d73UXOB3D+eM5zI6sJ+CX9kqmc="}
[2021-01-11T08:20:28.298Z] DEBUG: sendAndConfirm: gqNzaWfEQKSZy44C8/BLxoWMJDlFoXAi0luoCMkVTvVImiO8/y44ISkewRQN1Bam/huFOeKPqnP5OeceNILSF5RsE+Q5tQejdHhuiqNhbXTOBfXhAKNmZWXNA+iiZnbM7KNnZW6pZGV2bmV0LXYxomdoxCDmj1+j1jrm1YdeJL7R3vdRc4HcP54znMjqwn4Jf2SqZ6Jsds0E1KRub3RlxBy7QHJlYWNoLXNoL0FMR08ubWpzIHRyYW5zZmVyo3JjdsQgJuMgqaaTYNtO7XsHumNZPyAcsc0G3pkkxsCaHW7Q2zSjc25kxCCjmrx0w8nmRK6+8mbfbJibB5eNu38iBQBtqc08MoK7b6R0eXBlo3BheQ==
after: balance: 100 algos
[2021-01-11T08:20:34.323Z] DEBUG: RVA3: connectAccount
before: balance: 0 algos
[2021-01-11T08:20:34.326Z] DEBUG: fillTxn: getting params
[2021-01-11T08:20:34.328Z] DEBUG: fillTxn: got params: {"flatFee":false,"fee":0,"firstRound":238,"lastRound":1238,"genesisID":"devnet-v1","genesisHash":"5o9fo9Y65tWHXiS+0d73UXOB3D+eM5zI6sJ+CX9kqmc="}
[2021-01-11T08:20:34.345Z] DEBUG: sendAndConfirm: gqNzaWfEQA144rYlCN7Y82yR5hlp5CoBAUzsHSK7yRCG1iYDTy8NgwqFaPgINqia3/cD7muAtGoh7udZuQGQw1Tt9QouwQajdHhuiqNhbXTOBfXhAKNmZWXNA+iiZnbM7qNnZW6pZGV2bmV0LXYxomdoxCDmj1+j1jrm1YdeJL7R3vdRc4HcP54znMjqwn4Jf2SqZ6Jsds0E1qRub3RlxBy7QHJlYWNoLXNoL0FMR08ubWpzIHRyYW5zZmVyo3JjdsQgRONQbpfG6BBHhzDvDkICG9ciL2BA/DPAcdUxKxyOpz6jc25kxCCjmrx0w8nmRK6+8mbfbJibB5eNu38iBQBtqc08MoK7b6R0eXBlo3BheQ==
after: balance: 100 algos
[2021-01-11T08:20:42.358Z] DEBUG: RSBK deploy
[2021-01-11T08:20:42.358Z] DEBUG: compile appApproval0
file:///app/build/index.main.mjs:8
  const v0 = await ctc.creationTime();
                       ^

TypeError: ctc.creationTime is not a function
    at Module.Alice (file:///app/build/index.main.mjs:8:24)
    at file:///app/index.mjs:41:17
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @reach-sh/algoreach-index@ index: `node --experimental-modules --unhandled-rejections=strict index.mjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @reach-sh/algoreach-index@ index script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I can’t open the files involved, i have my testnet node running on the msys windows installation, while reach is on wsl2… i don’t know who can help me in this specific situation.

UPDATE

It worked fine when using reach init. I’m sure all the files were identical. weird.

This error is raised when function names in the backend and frontend are not matching. You probably misspelled creationTime function in the frontend.