I did encounter the same problem, it turned out that we can't add plugins: [svelte()] under ctViteConfig.
There are some bugs/ conflicts after recent breaking changes of SvelteKit and Vite 3.0.
Interesting. I don't actually use SvelteKit but just plain Svelte app.
So, have you found the way around the issue or how did you got it to work in your original post?
Great post!
However, I can't seem to get Playwright to mount Svelte component properly. Wondering if you had similar issue?
And this is my App.svelte
and Playwright Config
I did encounter the same problem, it turned out that we can't add
plugins: [svelte()]
underctViteConfig
.There are some bugs/ conflicts after recent breaking changes of SvelteKit and Vite 3.0.
Interesting. I don't actually use SvelteKit but just plain Svelte app.
So, have you found the way around the issue or how did you got it to work in your original post?
If you use the
playwright-ct.config.ts
in my original post, it should work.