S
SolidJS•6mo ago
snorbi

Invalid import by kobalte

I get the following error when trying to run my vitest tests (sorry, I'm unable to copy the text itself). Have you seen anything similar? Thanks. Image
No description
5 Replies
mdynnl
mdynnl•6mo ago
you have an outdated solid-js version somewhere in your project
snorbi
snorbiOP•6mo ago
My package.json is:
"dependencies": {
"@kobalte/core": "^0.13.10",
"@kobalte/utils": "^0.9.1",
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.15.3",
"@tanstack/solid-virtual": "^3.13.2",
"solid-js": "^1.9.5",
...
}
"dependencies": {
"@kobalte/core": "^0.13.10",
"@kobalte/utils": "^0.9.1",
"@solidjs/meta": "^0.29.4",
"@solidjs/router": "^0.15.3",
"@tanstack/solid-virtual": "^3.13.2",
"solid-js": "^1.9.5",
...
}
Maybe I should use the @solidjs/web dependency instead of solid-js?
mdynnl
mdynnl•6mo ago
ah, no, I missed the first part where it said vitest tests vitest should be using the browser build, here it's using the server one where use does not make sense and not implemented https://github.com/solidjs-community/solid-primitives/blob/main/configs/vitest.config.ts this might help you in configuring vitest
snorbi
snorbiOP•5mo ago
Thanks for your answer, unfortunately I was not able to make it work 😦
snorbi
snorbiOP•5mo ago
I have found this related Kobalte issue: https://github.com/kobaltedev/kobalte/issues/542
GitHub
HiddenSelectBase leads to import "use" from "solid-js/web" in compi...
Describe the bug I'm currently using SolidUI to add component to my project, since it's a shadcn/ui inspired library and I've located the use function was used by compiled HiddenSelectB...

Did you find this page helpful?