-
Notifications
You must be signed in to change notification settings - Fork 133
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
Can not create MemorySource #933
Comments
I'm not seeing any code that would instantiate a liveQuery, which makes the error message and trace confusing. Any chance you could reproduce your problem in a fork of this codesandbox or in a public repo? |
@dgeb I pushed a test project to https://github.com/towerhe/orbit-vitest. It can reproduce my problem. Thanks ! |
Use optional chaining to handle cases in which the global `process` is `null` (because `typeof null === 'object'`). Fixes #933
@towerhe thanks for the reproduction! That helped me narrow the issue down to an edge case in the environment check (in which the Incidentally, I was surprised to see the |
Fix included in v0.17.2 |
I am also a newbie of Vue + Vite community. By looking through the doc of vite and vitest, es modules should be used first. After checking the deps of my project, I found some deps are distrubuted as commonjs modules e.g. @testing-library/vue. This commonjs deps maybe cause vite and vitest to change the resolving policy. |
I try to run a test with vitest. It throws an error when creating an instance of MemorySource:
My test codes:
The text was updated successfully, but these errors were encountered: