https://github.com/coderbyheart/aws-iot-device-sdk-js-browser-esm
Demonstrates usage of aws-iot-device-sdk-js-v2 in a browser project using ESM
https://github.com/coderbyheart/aws-iot-device-sdk-js-browser-esm
Last synced: 9 months ago
JSON representation
Demonstrates usage of aws-iot-device-sdk-js-v2 in a browser project using ESM
- Host: GitHub
- URL: https://github.com/coderbyheart/aws-iot-device-sdk-js-browser-esm
- Owner: coderbyheart
- Created: 2022-02-23T14:38:12.000Z (almost 4 years ago)
- Default Branch: saga
- Last Pushed: 2022-08-31T14:00:45.000Z (over 3 years ago)
- Last Synced: 2025-02-01T11:11:22.928Z (11 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> :information_source: This code is a demonstration for the bug https://github.com/aws/aws-iot-device-sdk-js-v2/issues/223. It is intended to not work.
# Demonstrates usage of aws-iot-device-sdk-js-v2 in a browser project using ESM
npm ci
npm start
Open the browser at , and observe the error.
```
_stream_readable.js:48 Uncaught ReferenceError: global is not defined
at node_modules/mqtt/node_modules/readable-stream/lib/_stream_readable.js (_stream_readable.js:48:21)
at __require2 (chunk-XVGJCPEK.js?v=6328ceea:34:50)
at node_modules/mqtt/node_modules/readable-stream/readable-browser.js (readable-browser.js:1:28)
at __require2 (chunk-XVGJCPEK.js?v=6328ceea:34:50)
at node_modules/mqtt/lib/store.js (store.js:8:18)
at __require2 (chunk-XVGJCPEK.js?v=6328ceea:34:50)
at node_modules/mqtt/lib/client.js (client.js:7:15)
at __require2 (chunk-XVGJCPEK.js?v=6328ceea:34:50)
at node_modules/mqtt/lib/connect/index.js (index.js:3:20)
at __require2 (chunk-XVGJCPEK.js?v=6328ceea:34:50)
```