Closed trgsv closed 1 year ago
Can you please share your code to reproduce this error?
I created a small demo repo with scrypt-ts + vite + vitest: https://github.com/trgsv/scrypt-vite-vitest
Run tests with npm run test
"typescript": "=4.8.4"
, not "typescript": "^4.9.3"
. this is in our docsnoEmit
should be set to false. outDir
shoud be set too."sourceMap": true
but Vite uses esbuild to transpile TypeScript into JavaScript which is about 20~30x faster than vanilla tsc, and HMR updates can reflect in the browser in under 50ms. scryptTS depends on tsc. So we can't support vite now.
Thanks for you answer. I forgot to set the TS version in this demo repo. So vitest doesn't work because it uses vite (which uses esbuild).
Compiling doesn't work when using vitest testing framework with this tsconfig: https://github.com/sCrypt-Inc/scryptTS-examples/blob/master/tsconfig.json Node v16.18.1
Error: the ts-scrypt transformer plugin may not be activated for the project, check your
tsconfig
file!