Environment
|
|
| Operating system |
Linux 6.8.0-100-generic |
| CPU |
AMD Ryzen 7 7840HS with Radeon 780M Graphics (16 cores) |
| Node.js version |
v24.11.1 |
| nuxt/cli version |
3.33.1 |
| Package manager |
pnpm@9.15.4 |
| Nuxt version |
4.3.1 |
| Nitro version |
2.13.1 |
| Nuxt test-utils |
4.0.0 |
| Builder |
vite@7.3.1 |
| Config |
- |
| Modules |
- |
Reproduction
https://github.com/Eschricht/nuxt-test-utils-monorepo
Describe the bug
I’m seeing intermittent import resolution failures when running Nuxt tests with @nuxt/test-utils in a monorepo reproduction.
Reproduction repo: https://github.com/Eschricht/nuxt-test-utils-monorepo
Environment
@nuxt/test-utils: 4.0.0
vitest: 4.0.18
nuxt: 4.3.1
pnpm: 9.15.4
node: v24.11.1
OS: Ubuntu Linux (kernel 6.8.0-100-generic)
Repro steps
Per the README, this can pass or fail depending on the run.
I reproduced this multiple times by looping pnpm test.
Expected behavior
All suites pass consistently.
Actual behavior
Intermittent failure with:
TypeError: Package import specifier "#imports" is not defined in package .../node_modules/@nuxtjs/color-mode/package.json
imported from .../node_modules/@nuxtjs/color-mode/dist/runtime/plugin.client.js
Example failing suite:
FAIL |composable-nuxt| test/nuxt/composable.spec.ts
Repro frequency I observed
In one sample of 30 runs:
The failure signature was consistent (#imports in @nuxtjs/color-mode module).
Additional note
I also observed this failure in single-project mode:
pnpm vitest run --project composable-nuxt
So it may not be only cross-project Vitest concurrency.
Possible related issues
Additional context
No response
Logs
Environment
Linux 6.8.0-100-genericAMD Ryzen 7 7840HS with Radeon 780M Graphics (16 cores)v24.11.13.33.1pnpm@9.15.44.3.12.13.14.0.0vite@7.3.1--Reproduction
https://github.com/Eschricht/nuxt-test-utils-monorepo
Describe the bug
I’m seeing intermittent import resolution failures when running Nuxt tests with @nuxt/test-utils in a monorepo reproduction.
Reproduction repo: https://github.com/Eschricht/nuxt-test-utils-monorepo
Environment
@nuxt/test-utils:4.0.0vitest:4.0.18nuxt:4.3.1pnpm:9.15.4node:v24.11.1OS: Ubuntu Linux (kernel6.8.0-100-generic)Repro steps
pnpm install pnpm testPer the README, this can pass or fail depending on the run.
I reproduced this multiple times by looping pnpm test.
Expected behavior
All suites pass consistently.
Actual behavior
Intermittent failure with:
Example failing suite:
Repro frequency I observed
In one sample of 30 runs:
The failure signature was consistent (
#importsin@nuxtjs/color-modemodule).Additional note
I also observed this failure in single-project mode:
So it may not be only cross-project Vitest concurrency.
Possible related issues
Additional context
No response
Logs