public icon indicating copy to clipboard operation
public copied to clipboard

Support for vitest 1.6.0

Open dnicolson opened this issue 1 year ago • 1 comments

Issue description or question

Updating from vitest 1.5.3 to 1.6.0 results in the following messages:

‍​[Info]​ Started Wallaby.js Core v1.0.1560
​[Info]​ Wallaby App (realtime reports) is available at: http://localhost:51245
​​[Error] Runtime error: Failed to initialize wallaby vitest.​​
​​[Error] Initialization: Wallaby is not compatible with current version of Vitest.​​
​​[Error] Could not find fetchModule in entry point for file file://./node_modules/vitest/dist/vendor/cli-api.E07AF1Yq.js.​​
​​[Error] Error: Initialization: Wallaby is not compatible with current version of Vitest.​​
​​[Error] Could not find fetchModule in entry point for file file://./node_modules/vitest/dist/vendor/cli-api.E07AF1Yq.js.​​
​​[Error]     at file://./node_modules/vitest/dist/vendor/cli-api.E07AF1Yq.js:1:7​​
​​[Error]     at ModuleJob.run (node:internal/modules/esm/module_job:222:25)​​
​​[Error]     at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)​​

dnicolson avatar May 05 '24 15:05 dnicolson

We plan on adding support for Vitest 1.6.x within the next week. Will post a reply when it becomes available.

In the meantime, if you don't require Vitest 1.6.x features, you may downgrade to Vitest 1.5.3 until we release support for 1.6.x.

smcenlly avatar May 05 '24 23:05 smcenlly

We have added support for Vitest 1.6.x in Wallaby core v1.0.1561. Please update to the latest version, it should work for you.

smcenlly avatar May 07 '24 01:05 smcenlly

Hi @smcenlly, I have the same problem, but I can't figure out how I can update the core version for Wallaby because my plugin version is the latest in WebStorm.

{
  editorVersion: 'WebStorm 2024.1.2',
  pluginVersion: '1.0.288',
  editorType: 'IntelliJ',
  osVersion: 'win32 10.0.22631',
  nodeVersion: 'v20.11.0',
  coreVersion: '1.0.1559',
 // ...
}

P0TER avatar May 14 '24 09:05 P0TER

@P0TER - If you close and re-open all instances of WebStorm, Wallaby should automatically download the latest version the next time it starts. After that, you will need to restart once more for the latest version for Wallaby to start using that version.

The only caveat to this is if your license has expired. In this case, you will be version-locked to the last version of Wallaby supported by your license.

smcenlly avatar May 14 '24 22:05 smcenlly

@smcenlly Thanks for the reply, but it doesn't work for me. I have a license valid for several years in advance. Would you be able to advise on how I can check my license and update the key if needed since I didn't receive any notifications?

P0TER avatar May 20 '24 17:05 P0TER

@P0TER - you should be able to access your most recent license key via your Wallaby Account. Then you can follow these instructions for applying your license key.

If it's still not updating for you and you're using a VPN, please try temporarily disabling it to allow the update.

Finally, if that does not work, you may try following our offline installation instructions.

smcenlly avatar May 20 '24 23:05 smcenlly

@smcenlly Following the instructions, I found a magic core update button, this is what I needed. Now everything works fine, thanks. image

P0TER avatar May 21 '24 09:05 P0TER