LATEEK
[nuxt] [request error] [unhandled] [500] Cannot find module’ vue/server-renderer/index.mjs’ (3.12.2)
Thanks for your feedback !
We we're kinda in the same situation, we can't use the last vue version as it generate bug. So we stick with 3.4.31, so we forced the module resolution in package.json like :
24 replies
Playwright 🎭 Tests parallelizations's execution times issue
Not really, for the moment I'm telling playwright to use my own application instance using "baseURL", but as mentioned, it makes the playwright UI empty, so we're blind during the test run.
I'm still not sure if its intended that multiples workers run its own nuxt application build but didn't get any answer on that part. However, if it's intended, it will make workers option unusable for me as it increase the testing time sooo much (it also rebuild the app during a retry).
So at least, I think we should be able to run test against our own application instance AND keep the playwright --ui working. For this option, I've good hope in this PR: https://github.com/nuxt/test-utils/pull/803
8 replies
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
Not sure were your calls are made/needed and their purpose, so I couldn't say much about this. But I don't think such limitation exists, maybe some additionals checks in the middleware could solve this. Usually useAsyncData is my way to go, so fetch logic belongs to my page/component that need it, but as said, it might not be the right solution, really depends of what we're trying to achieive
15 replies
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
Ok I get it, so I think it is attended.
/a -> /a: cause you're hard loading the /a page.
/a -> /b: cause you ask to redirect to /b so we need to trigger potentiel middleware linked.
/b -> /b: cause you're hard loading the /b page.
15 replies
Playwright 🎭 Tests parallelizations's execution times issue
After more investigation it really seems to be linked the way nuxt handle things in https://github.com/nuxt/test-utils/blob/main/src/playwright.ts, probably in
hooks.setup()
.
I don't directly use the expect
, test
of playwright but from @nuxt/test-utils/playwright
which is what the documentation mention to make use of the Playwright first-class support.8 replies
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
@! GhostvOne.tv 👻🇫🇷 you have an older nuxt version (3.4.3), this one has been addressed in more recent version (https://github.com/nuxt/nuxt/pull/21412)
15 replies