-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
2.1.4: Failed to load source map for typescript.js #6806
Comments
With this change #6724, we started to surface warning from plugins, so this is a part of it. Technically this might be typescript package's issue since they have $ tail node_modules/typescript/lib/typescript.js
//# sourceMappingURL=typescript.js.map
$ ls node_modules/typescript/lib/typescript*
node_modules/typescript/lib/typescript.d.ts
node_modules/typescript/lib/typescript.js |
Related issue in Typescript microsoft/TypeScript#32207 |
I meant plugins including Vite's internal ones and warning is coming from there. Btw, another odd thing is that Vitest is transforming a giant |
This resolves my problem. Thank you so much! But you're right, that should have not been necessary taking into account that the default value for Which btw does work when setting explicitly
So that the issue is that the default value mentioned in the documentation is not really applied |
vitest/packages/vitest/src/defaults.ts Lines 102 to 140 in 47d7c0a
|
I haven't looked into this deeper, but It's likely that the issue about vitest/packages/vite-node/src/externalize.ts Line 100 in 806c966
And I'm aware that the documentation https://vitest.dev/config/#server-deps-external isn't telling the truth right now. |
Describe the bug
While upgrading vitest from 2.1.3 to 2.1.4 this error appeared in the beginning of the tests.
It's not causing tests to fail though.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-lgenvr?file=src%2Fbasic.ts
Seems to be related to importing
typescript
:System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: