Closed getlarge closed 1 month ago
Thank you for bringing this issue to our attention! I want to assure you that I will take a look as soon as I can. Your patience and understanding in this matter is greatly appreciated.
@Coly010 is there any rough estimate? I know is too much to ask, but just wondering. We wanted update Nx to fix issue with Vitest generator of missing path and now we hit this problem after update 🙈 We really want to move away from Jest, because it blocks us from using ESM :(
Hi @huv1k, I don't know exactly what blocks you from using ESM with Jest, but I got this setup running in several ESM-based Nx workspace. One of them is open-source, feel free to have a look and send your questions.
Any updates on this issue? We are facing this issue for any nx version past 17
Sorry for the wait everyone, fix is in PR
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
I have been migrating a project from Nx 17.1 to 17.3.2 to integrate the
nx release
flow. When running the generated migration, it bumped thevite
andvitest
dependencies, which triggered some unexpected issues.In a nutshell, here's what we found with @BioPhoton :
vitest
fails to resolve the TS config paths when run through the@nx/vite:test
executor.vitest
(npx vitest --config=<custom-config-file>
), they are running.With this patch (in
node_modules/@nx/vite/src/executors/test/vitest.impl.js
), i suspect that we are forcing vitest to resolve the config file by itself, probably ignoring the otherresolvedOptions
Expected Behavior
I expect the custom Vitest config file to be supported since there is an option (
config
) supported by the executor to declare the configuration file path.GitHub Repo
https://github.com/getlarge/vitest-issue-repro
Steps to Reproduce
npm i
)npx nx run coffee-maker:test
Error: Failed to load url @repro/helpers (resolved id: @repro/helpers) in XXXXX
Nx Report
Failure Logs
Package Manager Version
10.2.4
Operating System
Additional Information
Might be related: