Skip to content

angular-table: published tanstack-angular-table.mjs references a .map file that is not in the package #6686

In review

Description

@goetzrobin

TanStack Table version

@tanstack/angular-table 9.3.2 (latest)

Framework/Library version

Angular 21.2, Vite 8.3.8 (dev server with SSR)

Describe the bug and the steps to reproduce it

The published dist/fesm2022/tanstack-angular-table.mjs ends with

//# sourceMappingURL=tanstack-angular-table.mjs.map

but the package ships no .map files. Tools that follow the comment fail to read the map. The Vite dev server, for example, logs this stack trace once per start, in every app that imports @tanstack/angular-table:

[vite] (ssr) Failed to load source map for .../node_modules/@tanstack/angular-table/dist/fesm2022/tanstack-angular-table.mjs.
Error: An error occurred while trying to read the map file at tanstack-angular-table.mjs.map
Error: ENOENT: no such file or directory, open '.../@tanstack/angular-table/dist/fesm2022/tanstack-angular-table.mjs.map'

The other two files in dist/fesm2022 (tanstack-angular-table-static-functions.mjs and tanstack-angular-table-experimental-worker-plugin.mjs) have no sourceMappingURL comment, so only the main entry is affected.

Steps:

npm pack @tanstack/angular-table@9.3.2
tar xzf tanstack-angular-table-9.3.2.tgz
tail -c 60 package/dist/fesm2022/tanstack-angular-table.mjs   # ends with the sourceMappingURL comment
find package -name '*.map'                                    # prints nothing

Expected: either publish tanstack-angular-table.mjs.map next to the file, or build the published entry without the sourceMappingURL comment, as the other two entries already are.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

Sandbox: https://stackblitz.com/github/goetzrobin/tanstack-table-6686-repro

Repo: https://github.com/goetzrobin/tanstack-table-6686-repro (npm install, then npm start). It prints the last line of the published file, shows that the .map file does not exist, and lets Vite transform the file the way Angular SSR setups do, which logs the error above. The module is only transformed, not executed.

Do you intend to try to help solve this bug with your own PR?

Happy to help with some guidance

Activity

  1. self-assigned this
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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