You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
angular-table: published tanstack-angular-table.mjs references a .map file that is not in the package #6686
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)
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?
Activity