Skip to content

Sourcemap references missing source files #3147

@baraknaveh

Description

@baraknaveh

Description

When using Vitest, I get warnings like:

Sourcemap for "mypath/node_modules/.pnpm/redis@5.10.0/node_modules/redis/dist/index.js" points to missing source files

The published sourcemap references source files that aren't included in the package.

Suggested fix: Enable inlineSources in tsconfig.json to embed the source content directly in the .map files:

{
  "compilerOptions": {
    "sourceMap": true,
    "inlineSources": true
  }
}

This resolves the warnings without adding extra files to the package.

Node.js Version

v24.11.0

Redis Server Version

No response

Node Redis Version

5.10.0

Platform

MacOS

Logs

Sourcemap for "mypath/node_modules/.pnpm/redis@5.10.0/node_modules/redis/dist/index.js" points to missing source files

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions