---
title: "Comment by Valentyna on \"🚀 Seamless Migration: Upgrading Your Automation Framework from WebdriverIO v7 to v8 🔀\" | Hashnode"
description: "Hello! thank you for helpful guide. But I stuck while migration to V8, maybe you faced same issue or maybe you have an advice what to do? The error: Package sub"
url: "https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058/comment/65d5d202838e29d6090513b0"
---

[Discussion](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058)

Comment [🚀 Seamless Migration: Upgrading Your Automation Framework from WebdriverIO v7 to v8 🔀](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058)

[Valentyna](https://hashnode.com/@Valentyna)

[Feb 21, 2024](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058/comment/65d5d202838e29d6090513b0)

Hello! thank you for helpful guide. But I stuck while migration to V8, maybe you faced same issue or maybe you have an advice what to do? The error: Package subpath './build/commands/element/waitForDisplayed' is not defined by "exports" in C:\\Users\***_\\Desktop\*_**\\node\_modules\\webdriverio\\package.json

[Hardik Chotaliya](https://hashnode.com/@HardikChotaliya)

[Feb 23, 2024](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058/comment/65d5d202838e29d6090513b0#reply-65d82962ae5730d312275643)

It seems like the issue is with your import statement. As per the given error, it is seen that you are using commonjs which is not supported by the latest version!

[Valentyna](https://hashnode.com/@Valentyna)

[Feb 26, 2024](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058/comment/65d5d202838e29d6090513b0#reply-65dc7ef29f88341763777f8c)

[Hardik Chotaliya](https://hashnode.com/@HardikChotaliya) Indeed, I've found some strange imports, everything works after deleting them. Thank you for reply :)

[Hardik Chotaliya](https://hashnode.com/@HardikChotaliya)

[Feb 27, 2024](https://hashnode.com/posts/webdriverio-v7-to-v8-migration-guide/64f362464025e6ccfd183058/comment/65d5d202838e29d6090513b0#reply-65ddc2337dcb2c2b9d428e90)

Oh great. :) [Valentyna](https://hashnode.com/@Valentyna)
