getappmap / appmap-agent-js

This project is deprecated. Please use https://github.com/getappmap/appmap-node/ to record Node.js applications.
Other
28 stars 8 forks source link

Missing source maps panic the application #221

Closed dustinbyrne closed 1 year ago

dustinbyrne commented 1 year ago

If a JS file contains a source mapping to a non-existent file, the application will panic

$ npx appmap-agent-js -- node build
(node:17016) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

[appmap@13.8.0] Detected an unknown error. If this error disapear when not recording your application, it is probably an issue within the appmap framework. If this is the case, please consider submitting a bug report at:
  https://github.com/getappmap/appmap-agent-js/issues

node:fs:594
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, open '<workspace>\node_modules\@prisma\client\runtime\library.js.map'
    at Object.openSync (node:fs:594:3)
    at readFileSync (node:fs:462:35)
    at file:///<workspace>/node_modules/@appland/appmap-agent-js/dist/bundles/recorder-process.mjs:542:12
    at instrument (file:///<workspace>/node_modules/@appland/appmap-agent-js/dist/bundles/recorder-process.mjs:3642:24)
    at Module._compile (file:///<workspace>/api/node_modules/@appland/appmap-agent-js/dist/bundles/recorder-process.mjs:3871:7)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18
appland-release commented 1 year ago

:tada: This issue has been resolved in version 13.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: