ember-cli-rollbar icon indicating copy to clipboard operation
ember-cli-rollbar copied to clipboard

"document is not defined" in FastBoot environment

Open progand opened this issue 8 years ago • 0 comments

Every time I try to enable rollbar in environment.js:

rollbar: {
    enabled: true
}

I have an error in fastboot:

App is being served by FastBoot
/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339
!function(r){function e(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return r[t].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o
={};return e.m=r,e.c=o,e.p="",e(0)}([function(r,e,o){"use strict";var t=o(1).Rollbar,n=o(2);_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://d37gv
rvc0wt4s1.cloudfront.net/js/v1.9/rollbar.min.js";var a=t.init(window,_rollbarConfig),i=n(a,_rollbarConfig);a.loadFull(window,document,!_rollbarConfig.async,_rollba
rConfig,i)},function(r,e){"use strict";function o(r){return function(){try{return r.apply(this,arguments)}catch(e){try{console.error("[Rollbar]: Internal error",e)
}catch(o){}}}}function t(r,e,o){window._rollbarWrappedError&&(o[4]||(o[4]=window._rollbarWrappedError),o[5]||(o[5]=window._rollbarWrappedError._rollbarContext),win
dow._rollbarWrappedError=null),r.uncaughtError.apply(r,o),e&&e.apply(window,o)}function n(r){var e=function(){var

ReferenceError: document is not defined
    at Object.<anonymous> (/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339:452)
    at e (/home/user/projects/outingtravel/web/tmp/funnel-output_path-PiiPro2c.tmp/assets/vendor.js:339:107)

...

Is it possible to disable rollbar loading in fastboot environment?

progand avatar Nov 13 '17 08:11 progand