Function.prototype.toString: 'this' is not a Function object
See original GitHub issueHaving an issue configuring raven.js since updating to 3.20.0 with IE11.
It’s an Angular (5.0.1) CLI (1.5.0) app with a typical setup in app.module
:
Raven
.config('https://...@sentry.io/...', {
environment: environment,
release: version
})
.install();
Running the app causes an error in IE11 Function.prototype.toString: 'this' is not a Function object
. Chrome and Firefox are ok.
Reverting to 3.19.1 resolves the issue.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (5 by maintainers)
Top Results From Across the Web
javascript - Babel 7: Function.prototype.toString: 'this' is not a ...
The error is thrown on something generated by Babel when "extends HTMLElement" is in the code (Babel generates something like "_.isNative" that ...
Read more >IE11 - Function.prototype.toString: 'this' is not a Function object ...
This issue is pending since a long time and I know that support for IE 11 is not in your primary focus. But...
Read more >Function.prototype.toString() - JavaScript - MDN Web Docs
The toString() method returns a string representing the source code of the specified Function.
Read more >javascript Function.prototype.toString() - CodeProject Reference
A string representing the source code of the function. Description. The Function object overrides the toString method inherited from Object ; it does...
Read more >Function.prototype.toString revision - TC39
for functions defined using ECMAScript code, toString must return source text ... function objects and bound function exotic objects, toString must not ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in
3.20.1
https://github.com/asgerjensen/raven-js-ie-issue
If you switch from 3.20.0 to 3.19.1 it starts working. Be sure to clear node_modules and package-lock.json
Also, i removed my key from
app.module.ts
, you probably have one or two lying around…I think, maybe the issue is a conflict with some of the other polyfills that IE require from core-js.