This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

AWS Asset Tracker npx issue

Hi

Is it so that the only way to use Asset Tracker 2 is with this AWS? Not even with the nrf cloud?

I am following your instructions here

https://nordicsemiconductor.github.io/asset-tracker-cloud-docs/v1.5.x/docs/aws/GettingStarted.html

git clone github.com/.../asset-tracker-cloud-aws-js.git asset-tracker-aws
cd asset-tracker-aws
npm ci
npx tsc

The last bit, using a fresh install of ubuntu with build-essential installed, then installing npm fails to build

the npx tsc gives me:

usky - Git hooks installed
added 1478 packages in 45.259s
billy@ubuntu:~/asset-tracker-aws$ npx tsc
cdk/resources/CellGeolocation.ts:7:25 - error TS2307: Cannot find module '@aws-cdk/aws-lambda' or its corresponding type declarations.

7 import * as Lambda from '@aws-cdk/aws-lambda'
                          ~~~~~~~~~~~~~~~~~~~~~

cdk/resources/CellGeolocation.ts:12:22 - error TS2307: Cannot find module '@aws-cdk/aws-sqs' or its corresponding type declarations.

12 import * as SQS from '@aws-cdk/aws-sqs'
                        ~~~~~~~~~~~~~~~~~~

cdk/resources/CellGeolocationApi.ts:4:25 - error TS2307: Cannot find module '@aws-cdk/aws-lambda' or its corresponding type declarations.

4 import * as Lambda from '@aws-cdk/aws-lambda'
                          ~~~~~~~~~~~~~~~~~~~~~

billy@ubuntu:~/asset-tracker-aws$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:    focal

nodejs -v
v10.19.0



billy@ubuntu:~/asset-tracker-aws$ cdk --version
1.93.0 (build c506d3b)

AWS is always fun

Thanks for any help


Related