-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Description
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- I've searched for previous similar issues and didn't find any solution
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
Labels
No labels