Skip to content
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

Missing Sourcemap Source Files #38

Open
joealden opened this issue Jan 15, 2025 · 2 comments
Open

Missing Sourcemap Source Files #38

joealden opened this issue Jan 15, 2025 · 2 comments

Comments

@joealden
Copy link

I'm encountering the following warning when running Vitest:

Sourcemap for ".../node_modules/vitest-fetch-mock/dist/index.js" points to missing source files

Look at what is distributed to NPM (as of version 0.4.3), this is flagging because dist/index.js.map has a sources value of ["../src/index.ts"], but this directory + file isn't shipped to NPM.

@dirkluijk
Copy link
Collaborator

dirkluijk commented Jan 15, 2025

I see no problem with the TypeScript setup of this project, it's quite normal to not ship source files to NPM.

What version of Vitest are you using?

@joealden
Copy link
Author

joealden commented Jan 15, 2025

Ah good point - I was on [email protected] to retain Vite v6 compatibility, but I actually don't need to be, and it goes away when depending on [email protected] (presumably because of it using Vite v5) - looks like this warning is still present with [email protected], so might be worth keeping open to see if this still happens with the final v3 vitest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants