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

Console errors due to Cannot call fileName of undefined #41

Open
jonsadka opened this issue Apr 14, 2020 · 2 comments
Open

Console errors due to Cannot call fileName of undefined #41

jonsadka opened this issue Apr 14, 2020 · 2 comments

Comments

@jonsadka
Copy link

Any chance we can update Line 183 to include a null check for frame (i.e.if (!frame || !frame.fileName) {)? I haven't been able to track down the why of these errors, except that this error only happens after loading an external, third party JavaScript library.

The parameters being passed into const frame = ErrorStackParser.parse(stackInfo)[stackIndex]; which are causing the error are:

stackInfo = {
  "stack": "Error: stacktrace source",
  "message": "stacktrace source"
}
stackIndex = 1
frame = undefined

Screenshot

Screen Shot 2020-04-13 at 7 04 59 PM

@jonsadka
Copy link
Author

This might be helpful: grepping the repo's node_modules for stacktrace source points to styletron-react exclusively. That repo uses that error in two places:

@S0Lucky4Y0u
Copy link

Pull please

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

2 participants