-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing after AppUI dropped CJS #1208
Comments
Do we have a link to a minimal reproduction example that is causing the issue? Sub-dependencies that depend on AppUI packages should define a type field |
@GerardasB The problem is that packages that depend on appui weren't properly configured to fully and properly support ESM just yet. For civil, we had configs to output both CJS and ESM flavors, but we always used Contrary to popular belief, we don't get to try out the latest RCs as soon as they come out to ensure everything works. That is time consuming and we do not have sufficient resources to have a developer do that full time. We usually ask consuming applications what date they expect to pull the latest major of (itwinjs/appui/etc), and we release our own packages a few weeks before that to ensure a smooth transition for them. With studio requiring appui5, it puts everyone in a time crunch to update their packages and make them ESM compliant. |
I did 2 minimal repro.With packages that depends on appui. First error. require() of esm moduleRun : Second error. SCSSRun : |
Thanks @mathieu-fournier ! This is yet another topic I don't have extensive knowledge of. Is there something we achieve with SASS that we couldn't do with raw CSS? |
True that, I update my comment with 2 minimal repo. thanks |
I think importing the |
Specifying an
This is analogous error due to additional packages importing |
The examples where minimal, with only one dependency. |
Update : The only other error I got was from mocking |
Describe the bug
Posting on behalf of several internal teams who are now running into issues with their tests after AppUI dropped support for CJS. Would it be possible to publish some guides or provide some recommendations/examples on how teams should now migrate their testing when updating to AppUI 5.0?
@mathieu-fournier :
@a-gagnon :
The text was updated successfully, but these errors were encountered: