# Migration from dt-app 0.148.1 to dt-app 1.0.2 error (new project structure)

**URL:** <https://community.dynatrace.com/t/migration-from-dt-app-0-148-1-to-dt-app-1-0-2-error-new-project-structure/53702>\
**Category:** Dynatrace Tips\
**Created:** [October 13, 2025, 1:57pm UTC](https://community.dynatrace.com/t/migration-from-dt-app-0-148-1-to-dt-app-1-0-2-error-new-project-structure/53702 "2025-10-13T13:57:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evan1](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@Evan1](https://community.dynatrace.com/u/Evan1)\
**Post date:** [October 13, 2025, 1:57pm UTC](https://community.dynatrace.com/t/migration-from-dt-app-0-148-1-to-dt-app-1-0-2-error-new-project-structure/53702/1 "2025-10-13T13:57:02Z")

</div>

Hello,

I’ve recently made the dependencies update of my custom app, with in it the new major version of dt-app. In the new version, there is a new project structure files, so I followed the migration guide of the wiki :&nbsp;[App toolkit | Dynatrace Developer](https://developer.dynatrace.com/quickstart/app-toolkit/#migrating-from-v0x-to-v1x)

When I try to lunch my development app, i’ve got the error that I have the wrong files structure, but I don’t see the problem. I tried to add empty `documents` and `actions` folders, or add a README.md in it but I still have this error :

```markup
✖ Building ui...

              Invalid project structure detected

              Your project uses an outdated file structure that is not supported in dt-app v1.0.
              To ensure compatibility and avoid build issues, please update your project structure.

              Required Changes:

              1. Configure sourceRoot in app.config.json:
                • Set "build.sourceRoot" to your desired source directory (default: "./")
                • Example: "build": { "sourceRoot": "src" }

              2. Organize your code using the standardized structure:
                <sourceRoot>/
                ├── ui/ ← UI components and main.tsx
                │ ├── main.tsx
                │ └── tsconfig.json
                ├── api/ ← App functions (*.function.ts)
                ├── actions/ ← Workflow actions (*.action.ts)
                ├── settings/ ← Settings widgets and schemas
                └── documents/ ← Document files

              Thank you for your support!

```

 ![Evan1_0-1760363058212.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/c/bced8c18e227be837ef479f34fe9e092d7273888.png)

Thanks for your help by advance,

Kind regards,

Evan

---

<div class="post-metadata">

**Author:** ![Evan1](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@Evan1](https://community.dynatrace.com/u/Evan1)\
**Post date:** [October 13, 2025, 1:59pm UTC](https://community.dynatrace.com/t/migration-from-dt-app-0-148-1-to-dt-app-1-0-2-error-new-project-structure/53702/2 "2025-10-13T13:59:09Z")

</div>

PS : I’ve also tried to add the suggested build.sourceRoot option in my app.config.json but doesn’t work

```markup
"build": {
    "sourceRoot": "./"
  }

```

---

<div class="post-metadata">

**Author:** ![Evan1](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@Evan1](https://community.dynatrace.com/u/Evan1)\
**Post date:** [October 14, 2025, 7:45am UTC](https://community.dynatrace.com/t/migration-from-dt-app-0-148-1-to-dt-app-1-0-2-error-new-project-structure/53702/3 "2025-10-14T07:45:13Z")

</div>

Hi there,

the solution to this problem is to remove every single “src” in your imports in the whole project. If you have an error with a src/ import in, it would return this error (instead of returning import error I guess)
