---
title: "Comment by Ankit on \"Migrating your project to AWS IOT device sdk v2\" | Hashnode"
description: "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 dependenc"
url: "https://hashnode.com/posts/migrating-your-project-to-aws-iot-device-sdk-v2/6467874f4cc278cea791084d/comment/65cf0673161e90a8cc475f2e"
---

[Discussion](https://hashnode.com/posts/migrating-your-project-to-aws-iot-device-sdk-v2/6467874f4cc278cea791084d)

Comment [Migrating your project to AWS IOT device sdk v2](https://hashnode.com/posts/migrating-your-project-to-aws-iot-device-sdk-v2/6467874f4cc278cea791084d)

[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 ?
