Skip to content

pub_sub sample has missing dependencies #68

@netwerkz

Description

@netwerkz

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
Installing npm dependencies throws imports errors.

SDK version number
v1.2.1

Platform/OS/Hardware/Device
Windows 10/workstation PC

To Reproduce (observed behavior)
Run npm i.

Expected behavior
Installing npm deps should not error. Sample should work out of the box.

Logs/output

$ npm i

> aws-crt@1.1.8 install C:\workspace\nodejs\pub_sub\node_modules\aws-crt
> node ./scripts/install.js


> pub-sub@1.0.0 prepare C:\workspace\nodejs\pub_sub
> npm run tsc


> pub-sub@1.0.0 tsc C:\workspace\nodejs\pub_sub
> tsc


> pub-sub@1.0.0 tsc C:\workspace\nodejs\pub_sub
> tsc

index.ts:6:16 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'auth'.

                 ~~~~
index.ts:6:22 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'http'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                       ~~~~

index.ts:6:28 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'io'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                             ~~

index.ts:6:32 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'iot'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                                 ~~~
index.ts:6:22 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'http'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                       ~~~~

index.ts:6:28 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'io'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                             ~~

index.ts:6:32 - error TS2305: Module '"./node_modules/aws-iot-device-sdk-v2/dist"' has no exported member 'iot'.

6 import { mqtt, auth, http, io, iot } from 'aws-iot-device-sdk-v2';
                                 ~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions