Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Version 2.30 -> TypeError: Cannot read properties of undefined (reading 'map') #193

@JarekToro

Description

@JarekToro

This seems familiar but not the same as these issues. The issues below mention how @jridgewell/trace-mapping had a bug that caused this. And you need a newer version. I have the newest version and am still having the problem.

#163
#158

I have these versions
"name": "@ampproject/remapping",
"version": "2.3.0",

"name": "@jridgewell/trace-mapping",
"version": "0.3.25",

This is the thrown error

TypeError: Cannot read properties of undefined (reading 'map')
❯ originalPositionFor node_modules/@ampproject/remapping/dist/remapping.mjs:78:17
❯ originalPositionFor node_modules/@ampproject/remapping/dist/remapping.mjs:89:12
❯ traceMappings node_modules/@ampproject/remapping/dist/remapping.mjs:53:26
❯ remapping node_modules/@ampproject/remapping/dist/remapping.mjs:197:26
❯ excludeGeneratedCode node_modules/@vitest/coverage-v8/dist/provider.js:2632:23
❯ V8CoverageProvider.getSources node_modules/@vitest/coverage-v8/dist/provider.js:2567:20
❯ node_modules/@vitest/coverage-v8/dist/provider.js:2502:38
❯ V8CoverageProvider.getUntestedFiles node_modules/@vitest/coverage-v8/dist/provider.js:2500:25
❯ V8CoverageProvider.generateCoverage node_modules/@vitest/coverage-v8/dist/provider.js:2389:32
❯ node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14947:24
❯ Vitest.runFiles node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14955:12
❯ Vitest.start node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14804:7
❯ startVitest node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:15893:7
❯ start node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1499:17
❯ CAC.run node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1479:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions