Upgrade to nuxt 3.12.2 @nuxt/test-utils issue
I am getting the following error since upgrading to 3.12.2.
This occurs after build during a playwright test. Following the instructions on e2e testing on the docs. This worked before upping the relevant deps to 3.12.2.
3 Replies
Checking the file it references it does seem to be that the renderer is not bundled.
I do have a prerenderer error during build as my application has dynamic routes and no
/
for some tenants. However telling the prerenderer not to error on fail and ignoring /
clears this error but does not address this issue.
Is this related to hoisting of dependencies with pnpm? I have shamefully-hoist
set both in my workspace root and on the nuxt project itself and still doesnt seem to be bundling this dependencythis seems to be a hoisting topic, yes
It seems to only affect builds and output when running the build as part of the setupHooks in e2e testing. Does anybody know why this might be?
So I have resolved this simply by pinning the vue version of 3.4.31 in the nuxt app package.json. Not sure which patch version sorts this but if anyone gets stuck on the same thing hopefully this helps.