Class constructor Renderer cannot be invoked without 'new'
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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