and this seems to works locally, but since I have an error after production build and I also notice that font-awesome are included in each of this, I would like to know if this is correct way.
The error which I am getting is
TypeError: Cannot read properties of undefined (reading 'cssVersion').
Your code looks correct. Is it possible to share a runnable test case with us so we can check what could be wrong?
Do you see any warnings in the console?
I suspect that this issue is caused by Power App Canvas App, which somehow isolate window object.
I notice this with another app, and by using globalThis worked, but not using window object.
You use almost everywhere globalThis, but not in entry.js where you define first time using window.bryntum, see attached screenshot.
Screenshot 2024-02-27 144031.png (49.21 KiB) Viewed 228 times
For now I think is better to switch the type of app, where this problem doesn't happen.