deep-foundation / deep-foundation/deeplinks
Use source-maps on error
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# Problem
1. Create TSX link
2. Throw error somewhere inside your code
3. Execute your compiled code by using any handler
4. See error liks this:
```ts
TypeError: Cannot read properties of undefined (reading 'push')\n at eval (eval at memoized (/node_modules/lodash/memoize.js:62:23), :211:51)\n at Array.reduce ()\n at eval (eval at memoized (/node_modules/lodash/memoize.js:62:23), :207:53)\n at Generator.next ()\n at /node_modules/apollo-link-ws/node_modules/tslib/tslib.js:115:75\n at new Promise ()\n at __awaiter (/node_modules/apollo-link-ws/node_modules/tslib/tslib.js:111:16)\n at getDetailedMessage (eval at memoized (/node_modules/lodash/memoize.js:62:23), :202:20)\n at eval (eval at memoized (/node_modules/lodash/memoize.js:62:23), :177:47)\n at Generator.next ()
```
Where you you can see `:211:51` and it means that error occured on 211 line. It is fine if you use your code directly in SyncTextFile and you can look at your like directly. But when your source code is located in TSX link and you see line in COMPILED CODE - it is a problem
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.