You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✓ built in 8.15s
Run npm run preview to preview your production build locally.
> Using @sveltejs/adapter-auto
Could not detect a supported production environment. See https://kit.svelte.dev/docs/adapters to learn how to configure your app to run on the platform of your choosing
Error: ENOENT: no such file or directory, open '/Users/ryanzec/repositories/edg-ui/playwright/.cache/metainfo.json'
1 did not run
To open last HTML report run:
pnpm exec playwright show-report
ELIFECYCLE Command failed with exit code 1.
Additional context
I followed the guide on the website an initially I got an error when it tried to compile code with TS:
vite v5.2.11 building for production...
✓ 4 modules transformed.
RollupError: [vite-plugin-svelte] [plugin vite-plugin-svelte] src/lib/components/core/button/button.svelte (2:9): /Users/ryanzec/repositories/edg-ui/src/lib/components/core/button/button.svelte:2:9 Unexpected token
- Did you forget to add a TypeScript preprocessor? See https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md for more information.
file: /Users/ryanzec/repositories/edg-ui/src/lib/components/core/button/button.svelte:2:9
1 | <script context="module" lang="ts">
2 | export enum ButtonVariant {
^
3 | FILLED = 'filled',
4 | WEAK = 'weak',
so I have to add in the sveltekit plugin to the playwright config but then I get this error.
I don't know if it should work with the sveltekit plugin but since this is for component test, sveltekit really is not needed.
While there does not seems to be a bug in playwright itself, it would be helpful for this to live on the component testing page so that people don't follow the guide and have it not work and not know why.
If this should work with sveltekit too (which I guess would be good for testing that components work with SSR), I have no idea if that is a bug in Playwright and configuration that I am not able to figure out.
I would add that I do think being able to using sveltekit with playwright is important if possible as components will often use $app/* which is part of sveltekit.
Version
1.43.1
Steps to reproduce
clone this repo: https://github.com/ryanzec/edg-ui
run
pnpm install
run
pnpm test:components
Expected behavior
test should run
Actual behavior
error after code builds
Additional context
I followed the guide on the website an initially I got an error when it tried to compile code with TS:
so I have to add in the sveltekit plugin to the playwright config but then I get this error.
Environment
The text was updated successfully, but these errors were encountered: