Skip to content

Error ERROR: [OBJECT object]

Paul edited this page May 21, 2019 · 1 revision

Error ERROR: [OBJECT object]

Go Here node_modules/@angular/core/fesm5/core.js

**line 15719... and add this bit ** const getCircularReplacer = () => { const seen = new WeakSet(); return (key, value) => { if (typeof value === "object" && value !== null) { if (seen.has(value)) { return; } seen.add(value); } return value; }; };

then adjust this function beloe to add the console.log entry function defaultErrorLogger(console) { var values = []; for (var _i = 1; _i < arguments.length; _i++) { values[_i - 1] = arguments[_i]; } console.log(JSON.stringify( values,getCircularReplacer() )); console.error.apply(console, __spread(values)); }

now you'll find you can debug ( to at least some degree ) that which was not debuggable in the past

Clone this wiki locally