We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, I keep getting the next error message when trying to use svelte-htm (running vitest). Rendering a simple component via @testing-library/svelte
svelte-htm
@testing-library/svelte
const noDataMessage = 'no data'; render(html` <${DataLoadingPane} loading=${false} noDataMessage=${noDataMessage}>data</${DataLoadingPane}>`);
[email protected] [email protected]
[email protected]
TypeError: Cannot read properties of undefined (reading '$$') ❯ Module.init node_modules/.pnpm/[email protected]/node_modules/svelte/internal/index.mjs:1992:50 | dirty, | skip_bound: false, | root: options.target || parent_component.$$.root | ^ | }; | append_styles && append_styles($$.root);
Appreciate any help. Thanks
The text was updated successfully, but these errors were encountered:
I'm seeing the same error, did you figure it out?
Sorry, something went wrong.
After bumping packages in my davipon/svelte-component-test-recipes repo, the error has gone and CI is passing.
I did try updating some packages but didn't have any luck, I'll take a look at what you changed, thanks.
This also fixed the issue for me, I did have to re-run vitest for it to pick up the new vitest version. Then my tests started to pass.
vitest
No branches or pull requests
Hey,
I keep getting the next error message when trying to use
svelte-htm
(running vitest).Rendering a simple component via
@testing-library/svelte
[email protected]
[email protected]
Appreciate any help.
Thanks
The text was updated successfully, but these errors were encountered: