Closed tslocke closed 7 months ago
Thanks for reporting your issue.
We've identified compatibility issues between the solidjs library, the solidjs vite plugin, and Wallaby. These have been addressed in Wallaby core version v1.0.1550
. Please update to this latest version, it should fix your problem.
Thank you : )
Now I'm getting an error in the wallaby console: Error: Your application tried to access graceful-fs, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
And the status bar spinner never stops.
We haven't been able to reproduce your problem. We tried using npm
pnpm
and yarn (v2)
for dependency management.
We have seen a similar graceful-fs
error in the past and it was a result of incorrect to .yarn
/ .pnp.cjs
files being in a parent folder. To correctly work on mono-repos, Wallaby resolves yarn configuration from your parent directories. Please check for .yarn
or .pnp.*
files in directories above your project and remove them.
We also had trouble trying to install your dependencies because of dependency conflicts so we had to upgrade and remove a few dependencies. It's possible this is the cause of your problem if there are no upstream yarn
files.
If neither of the suggestions above help, please provide an updated diagnostics report and let us know what you're using for your dependency management.
The parent folder issue fixed it - thanks very much : )
One small remaining issue is that I'm getting
The CJS build of Vite\'s Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details
even though I do have "type": "module"
in package.json and vite.config.ts is in ESM format. Could that be Wallaby related? It doesn't seem to be causing any problems so no biggie.
Thanks for letting us know about the CJS warning.
This warning was actually coming from the mechanism we use to identify the locations of various vite-related files that Wallaby needs to patch and wasn't related to execution of your tests.
We've now disabled this error from being reported.
I've just upgraded to latest versions of vite and vitest, plus solid-js and vite-plugin-solid, and now I'm getting
ReferenceError: React is not defined
from my tsx files. All tests pass with cli vitest.