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.

Class constructor Renderer cannot be invoked without 'new'

See original GitHub issue

Hi, I followed your basic installation guide but I’m getting the following browser error:

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

Any ideas where this could come from? Btw I’m using buble for compiling js.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Anthodpntcommented, Jun 1, 2018

@wassim

I’m happy to announce that the latest release v1.3.6 now provides an ES5 version of Highway. Please give it a try and keep us informed about your issue.

Best regards, Anthodpnt

2reactions
Anthodpntcommented, May 31, 2018

Hi @wassim,

Highway comes in ES6 and I pretty sure it’s not compiled through babel maybe because you are ignoring the node_modules which result in your code being compiled in ES5 mixed with Highway that remains in ES6.

Please check out the basic-polyfill example that should help you change your configuration in order to include Highway in the compilation process. This is an example using the babel-loader through Webpack.

This is our will to keep Highway in ES6 but we will consider providing an ES5 version to avoid this kind of repetitive issues 😃. Until then please keep us informed if this solution fixed your issue.

Best regards, Anthodpnt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class constructor cannot be invoked without 'new' in JS
Class constructor cannot be invoked without 'new' in JS # · Creates a new object that inherits the prototype of the class. ·...
Read more >
Javascript ES6 TypeError: Class constructor Client cannot be ...
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' after ...
We are working on it but weren't able to create a minimal reproduction yet. Exception or Error. TypeError: Class constructor FormControl ...
Read more >
Javascript ES6 TypeError Class constructor Client cannot be ...
Javascript ES6 TypeError Class constructor Client cannot be invoked without new ... What I am trying to do is, I have created a...
Read more >
“jest Class constructor cannot be invoked without 'new'” Code ...
typeerror: class constructors cannot be invoked without 'new' angular 12 · Uncaught TypeError: Class constructor cannot be invoked without 'new' reactjs · Class...
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