---
title: "Discussion on \"Migrating your project to AWS IOT device sdk v2\" | Hashnode"
description: "Discussion on \"Migrating your project to AWS IOT device sdk v2\". Hello everyone! I recently had the opportunity to work with AWS IoT to fetch real-time data. During the migration from Webpack 4 to Webpack 5, we encountered some issues with the aws-iot-device-sdk. While building our project, we encountered errors r..."
url: "https://hashnode.com/posts/migrating-your-project-to-aws-iot-device-sdk-v2/6467874f4cc278cea791084d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Migrating your project to AWS IOT device sdk v2](https://blog.devaman.dev/migrating-your-project-to-aws-iot-device-sdk-v2?utm_source=hashnode&utm_medium=feed)

Hello everyone! I recently had the opportunity to work with AWS IoT to fetch real-time data. During the migration from Webpack 4 to Webpack 5, we encountered some issues with the aws-iot-device-sdk. While building our project, we encountered errors r...

May 19, 2023 · 3 min read · blog.devaman.dev  
Updated May 22, 2023  
Read the article

-   [#aws-iot-core](https://hashnode.com/tag/aws-iot-core)
-   [#mqtt](https://hashnode.com/tag/mqtt)
-   [#websockets](https://hashnode.com/tag/websockets)

## Written by

[Amit Chambial](https://hashnode.com/@amitchambial)

@amitchambial · India

  
[View profile](https://hashnode.com/@amitchambial)

Full stack developer and a Maker

I am a full stack developer. Currently doing some project on nextjs / nodejs Working as SDE 3 in Netomi Here’s my Resume: https://resume.devaman.dev

## Responses 1

Markdown supported · ⌘↵ to post

[Ankit](https://hashnode.com/@Ankit9787)

[Feb 16, 2024](https://hashnode.com/posts/migrating-your-project-to-aws-iot-device-sdk-v2/6467874f4cc278cea791084d/comment/65cf0673161e90a8cc475f2e)

Its all fine, good read but when we do ng-build getting issues it says - pub-sub-test.component.ts depends on 'aws-iot-device-sdk-v2'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https :// angular.io/ guide/ build#configuring-commonjs-dependencies

so how to use sdk and build properly ?
