Developer Q&A Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

App engine: can we create JSX files in dynatrace app

rupalijain
Newcomer

I was trying to create jsx file in custom app, but it gave me below error which doesnt seems directly related.

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!

 

But when i change the file to tsx , it works fine. Is there any guidance on this?

1 REPLY 1

MostafaHussein
Champion

let's address this more detailed, why you need to create jsx?

Certified Dynatrace Professional | Certified Dynatrace Services - Observability | Certified Dynatrace Services - App Developer
Dynatrace Partner 2p.com.sa

Featured Posts