Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The regex return null on line.match #3

Open
wizardnet972 opened this issue Sep 6, 2022 · 1 comment
Open

The regex return null on line.match #3

wizardnet972 opened this issue Sep 6, 2022 · 1 comment

Comments

@wizardnet972
Copy link

I got an error:

TypeError: Cannot read properties of null (reading '1') at getCallee.ts (17:17)

The problem is result is null when I have error like this:

       at someFunction (C:\\code\\prj\\dist\\apps\\my-app\\webpack:\\prj\\dist\\apps\\main.ts:38:7)

https://github.com/epegzz/winston-dev-console/blob/master/src/getCallee.ts#L13

@wizardnet972
Copy link
Author

I looking into the typescript code and its different from the js code on the dist folder on the package.

for example: const filePath = result?.[1] ?? '' should be ignored when the result is null. but in the package, its have no if.

Maybe compile it and release new version to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant