question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Class constructor cannot be invoked without 'new'

See original GitHub issue
index.js:3228 Uncaught TypeError: Class constructor  cannot be invoked without 'new'
    at new TSCustomNodeModel (TSCustomNodeModel.ts:30)
    at index.tsx:14
    at mountMemo (react-dom.development.js:13459)
    at Object.useMemo (react-dom.development.js:13668)
    at useMemo (react.development.js:1592)
    at QueryBuilder (index.tsx:6)
    at renderWithHooks (react-dom.development.js:12938)
    at mountIndeterminateComponent (react-dom.development.js:15020)
    at beginWork (react-dom.development.js:15625)
    at performUnitOfWork (react-dom.development.js:19312)
    at workLoop (react-dom.development.js:19352)
    at HTMLUnknownElement.callCallback (react-dom.development.js:149)
    at HTMLUnknownElement.sentryWrapped (index.js:3204)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:199)
    at invokeGuardedCallback (react-dom.development.js:256)
    at replayUnitOfWork (react-dom.development.js:18578)
    at renderRoot (react-dom.development.js:19468)
    at performWorkOnRoot (react-dom.development.js:20342)
    at performWork (react-dom.development.js:20254)
    at performSyncWork (react-dom.development.js:20228)
    at requestWork (react-dom.development.js:20097)
    at retryTimedOutBoundary (react-dom.development.js:19789)
    at wrapped (scheduler-tracing.development.js:207)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
karentrevinocommented, Oct 1, 2019

@magnafilix not sure if you are using webpack/babel but I was able to resolve the issue by modifying my webpack.config file by creating a new rule for babel-loader to include projectstorm (we have an existing rule in order to exclude node-modules)

{
        test: /\.js$/,
        include: /node_modules\/@projectstorm/,
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env']
        }
},
1reaction
stereoboostercommented, Sep 24, 2019

no I haven’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class constructor Client cannot be invoked without 'new' - ...
When I try to execute nodemon command I always see this error TypeError: Class constructor Client cannot be invoked without 'new'.
Read more >
Class constructor cannot be invoked without 'new' in TS
The "Class constructor cannot be invoked without new" error occurs when the target property in tsconfig.json is set to lower than es6 or...
Read more >
Typescript: TypeError: Class constructor cannot be invoked ...
Bug report Getting the following error in my project: TypeError: Class constructor cannot be invoked without 'new' Looking at some related ...
Read more >
Javascript ES6 TypeError Class constructor Client cannot ...
When I try to execute nodemon command I always see this error TypeError: Class constructor Client cannot be invoked without 'new'.
Read more >
Reactjs " Class constructor upload cannot be invoked ...
Uncaught TypeError : Class constructor Upload cannot be invoked without 'new'. i dont know what to do with it:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found