Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in generate stacktrace? #1558

Open
long76 opened this issue Dec 21, 2022 · 0 comments
Open

bug in generate stacktrace? #1558

long76 opened this issue Dec 21, 2022 · 0 comments

Comments

@long76
Copy link

long76 commented Dec 21, 2022

Expected Behaviour

Error: Rows must be children by Table
    at index.tsx:12:41
    at oke (rows.tsx:19:39)
    at Ei (react-dom.production.min.js:167:176)
    at Sc (react-dom.production.min.js:291:227)
    at bs (react-dom.production.min.js:280:412)
    at gs (react-dom.production.min.js:280:352)
    at vs (react-dom.production.min.js:280:222)
    at as (react-dom.production.min.js:271:127)
    at os (react-dom.production.min.js:268:467)
    at C (scheduler.production.min.js:13:236)
    at MessagePort.H (scheduler.production.min.js:14:164)

Actual Behaviour

Error: Rows must be children by Table

    at oke (http://localhost:8080/resources/bundle.js:2:2326337)
    at div
    at div
    at tp (http://localhost:8080/resources/bundle.js:2:521747)
    at wh (http://localhost:8080/resources/bundle.js:2:547444)
    at Hh (http://localhost:8080/resources/bundle.js:2:548101)
    at gd (http://localhost:8080/resources/bundle.js:2:470930)
    at Ph
    at Kze (http://localhost:8080/resources/bundle.js:2:2324064)
    at t (http://localhost:8080/resources/bundle.js:2:2339153)

Steps to Reproduce the Problem

  • set options in tsconfig.json
{
"compilerOptions": {
    "sourceMap": true,
    "jsx": "react-jsx"
  }
}
  • set options in webpack.config.js
module.exports = (env, argv) => {
    return ({
        devtool: 'nosources-source-map',
    });
};
  • create component and throw error in it
  • put component in ErrorBoundary(use componentDidCatch) and render stacktrace

Location of a Minimal Repository that Demonstrates the Issue.

i made it if needed

if set devtool to eval-* then all prints ok. why only eval made right stacktrace? i wanted use hidden-source-map but it's not give me needed result.

P.S. error printed in console have expected paths in stack but in react(componentDidCatch) no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant