Comments (4)
Hi, Meilechwieder.
What is the source code?
from stacktrace.js.
I think this value should be end with ]
[{"columnNumber":2978,"lineNumber":1,"fileName":"https://.../_next/static/chunks/pages/dashboard/documents-40dfae09f9854c91.js","functionName":"n.default","source":" at n.default (https://.../_next/static/chunks/pages/dashboard/documents-40dfae09f9854c91.js:1:2978)"}]
from stacktrace.js.
Hi, Meilechwieder. What is the source code?
componentDidCatch(error, errorInfo) {
StackTrace.fromError(error).then(err=>{
api.post("/report-frontend-error", { message: error.message, longMessage: JSON.stringify(err), url: document.URL });
})
console.log({ error, errorInfo });
}
from stacktrace.js.
Please try this.
change longMessage: JSON.stringify(err)
into
longMessage: callback(err)
const callback = function(error) {
return error.map(function(sf) {
return sf.toString();
}).join('\n');
};
from stacktrace.js.
Related Issues (20)
- Arguments not getting populated in trace HOT 1
- Am not able to convert in to non minified response from minified in componentDidCatch
- Still active? HOT 2
- Promise rejection: Cannot parse given Error HOT 2
- Provide a simple API to interact with window.onerror
- Way to convert StackFrames back into a traditional Error stack
- getSync() available but no fromErrorSync() available
- Cert for https://www.stacktracejs.com/ expired HOT 3
- inside of object, get class name
- Extremely high memory usage HOT 5
- define cannot be used indirect stacktrace-gps
- Angular 10 build warning - CommonJS or AMD dependencies HOT 2
- Add defensive code HOT 1
- Missing documentation!
- ESM Support HOT 2
- runtime loading of source maps? HOT 1
- stacktrace-gps opitonal? HOT 1
- Explanation needed: Why is parsed stack different when using StackTrace.fromError with option offline=true and offline=false?
- Official Website Down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stacktrace.js.