We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following package.json
package.json
{ "name": "vitest-test", "private": true, "license": "MIT", "type": "module", "main": "index.js", "scripts": { "test": "vitest", "test:ui": "vitest --ui", "test:run": "vitest run" }, "devDependencies": { "@tsconfig/node14": "latest", "@vitest/ui": "latest", "vite": "latest", "vitest": "latest" }, "stackblitz": { "startCommand": "npm run test:ui" } }
and tsconfig.json
tsconfig.json
{ "extends": "@tsconfig/node14" }
Running vitest results in the following error:
vitest
FAIL test/basic.test.ts [ test/basic.test.ts ] Error: failed to resolve "extends":"@tsconfig/node14" in /home/projects/vitest-dev-vitest-ujcycp/tsconfig.json ❯ resolveExtends node_modules/vite/dist/node/chunks/dep-9c153816.js:22266:11 ❯ parseExtends node_modules/vite/dist/node/chunks/dep-9c153816.js:22250:34 ❯ parse$e node_modules/vite/dist/node/chunks/dep-9c153816.js:22201:24 ❯ async loadTsconfigJsonForFile node_modules/vite/dist/node/chunks/dep-9c153816.js:22547:24 ❯ async transformWithEsbuild node_modules/vite/dist/node/chunks/dep-9c153816.js:22380:36 ❯ async TransformContext.transform node_modules/vite/dist/node/chunks/dep-9c153816.js:22468:32 ❯ async Object.transform node_modules/vite/dist/node/chunks/dep-9c153816.js:38334:30 ❯ async doTransform node_modules/vite/dist/node/chunks/dep-9c153816.js:53030:29
If I remove "extends": "@tsconfig/node14" from tsconfig.json, the tests run successfully
"extends": "@tsconfig/node14"
https://stackblitz.com/edit/vitest-dev-vitest-ujcycp
N/A
yarn
The text was updated successfully, but these errors were encountered:
extends
I think this one has been fixed in upstream and updated via 68b186c.
Sorry, something went wrong.
Hurray! Closing issue :)
chore: update doc, close vitest-dev#991 (vitest-dev#994)
62adc22
Co-authored-by: Jelf <haichao.liang@parameters.cn> Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
No branches or pull requests
Describe the bug
Given the following
package.json
and
tsconfig.json
Running
vitest
results in the following error:If I remove
"extends": "@tsconfig/node14"
fromtsconfig.json
, the tests run successfullyReproduction
https://stackblitz.com/edit/vitest-dev-vitest-ujcycp
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: