Skip to content

How can I see original functions names/files names with Nexj.js #235

@meilechwieder

Description

@meilechwieder

I'm using StackTracer.fromError(errror) in production, and I'm getting an array like this:

[{"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)"}]

It does not give me the unminified function names/file names.

Expected Behavior

get the exact location in the source code that generated this bug

Current Behavior

compolied/minified function names like n.default, and sourcemap filename

Steps to Reproduce (for bugs)

I built the app with next.js but used a static export so it's a regular react app, I put the StackTrace in ErrorBoundary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions