Skip to content
New issue

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

TypeError: Cannot read properties of undefined (reading 'solid-refresh-ctx') #32

Closed
Jackie1210 opened this issue Jan 17, 2023 · 5 comments

Comments

@Jackie1210
Copy link

Jackie1210 commented Jan 17, 2023

I just cannot test solid component with vitest.

What i have done

All solutions above didn't work any more

@dmbdesignpdx
Copy link

I too get this error.

Steps to reproduce:

  1. npm init solid@latest
  2. select with-vitest, type n for server-side rendering, y for typescript
  3. npm i
  4. npm test

Versions:

  • solid-js@1.6.9
  • @solidjs/testing-library@0.5.2
  • Node 16.19.0
  • NPM 9.2.0

@qiuzhanghua
Copy link

qiuzhanghua commented Jan 19, 2023

Me too! Sample project as:

https://github.com/qiuzhanghua/solid-sample

Test failed when I use "ncu -u" to upgrade all libs.

@atk
Copy link
Collaborator

atk commented Jan 26, 2023

Sorry for my late response, I was sick last week. This doesn't seem like an error in solid-testing-library, but rather in the with-vitest template. I'll have a look later regardless.

@vchirikov
Copy link

it's a bug from solid-refresh in 0.4.2, use the latest version 0.4.3 or override to 0.4.1

solidjs/solid-refresh#29
solidjs/solid-refresh#30

@dmbdesignpdx
Copy link

looks like the latest solid-start has the updated version of solid-refresh and is working.

thanks @atk for getting back and @vchirikov for providing that insight.

@atk atk closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants