LATEEK
LATEEK
NNuxt
Created by Y@ on 7/26/2024 in #❓・help
[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 :
"pnpm": {
"overrides": {
"vue": "3.4.31"
}
},
"pnpm": {
"overrides": {
"vue": "3.4.31"
}
},
24 replies
NNuxt
Created by Y@ on 7/26/2024 in #❓・help
[nuxt] [request error] [unhandled] [500] Cannot find module’ vue/server-renderer/index.mjs’ (3.12.2)
Got same issue today when deploying on AWS Amplify 😦
[nuxt] [request error] [unhandled] [500] Cannot find module '/var/task/node_modules/vue/server-renderer/index.mjs' imported from /var/task/chunks/routes/renderer.mjs
[nuxt] [request error] [unhandled] [500] Cannot find module '/var/task/node_modules/vue/server-renderer/index.mjs' imported from /var/task/chunks/routes/renderer.mjs
24 replies
NNuxt
Created by LATEEK on 4/12/2024 in #❓・help
Your feedback, what should I use ? Fork || Layer || Module ?
thanks for you feedback !
5 replies
NNuxt
Created by LATEEK on 3/29/2024 in #❓・help
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
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
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
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
In other words, A is never really loaded because you don't get the html, instead you get redirected to /b which will be SRR
15 replies
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
No description
15 replies
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
Middleware called 3 times instead of 2 ? (stackblitz reproduction)
Yes because you're making a redirect there. So you're asking for new ressource location .ie: /b
15 replies
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
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
NNuxt
Created by LATEEK on 3/29/2024 in #❓・help
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
NNuxt
Created by ! GhostvOne.tv 👻🇫🇷 on 4/1/2024 in #❓・help
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
NNuxt
Created by LATEEK on 3/29/2024 in #❓・help
Playwright 🎭 Tests parallelizations's execution times issue
Anything else I can add to help? Maybe should I ask playwright's team instead ?
8 replies