TypeError: Class constructor View cannot be invoked without 'new'
See original GitHub issueTypeError: Class constructor View cannot be invoked without 'new'
NativeScript 7 with Vue.js when trying to create the map.
Issue Analytics
- State:
- Created 3 years ago
- Comments:26 (5 by maintainers)
Top 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 >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 >Angular script compilation: TypeError: Class constructor ...
TypeError : Class constructor MyScript cannot be invoked without 'new' at requireScriptForNodes (tools.ts:71) at attachScripts (tools.ts:220) ...
Read more >Jest fails with 'Class constructor Spec cannot be invoked ...
TypeError : Class constructor Spec cannot be invoked without 'new' 85 | function createdPatchedSpec(OriginalSpec, registry) { 86 | function ...
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
So my issue turned out be the handling of the plugin by babel
presets: [ [ '@babel/preset-env', { targets: { esmodules: true }, ----> include: ["transform-classes"] } ] ],
the inclusion of “include”:“[transform-classes”] solved it for me, I arrived to this answer through this https://stackoverflow.com/questions/36577683/babel-error-class-constructor-foo-cannot-be-invoked-without-new answer. I hope this helps someone.
Okay! Does it happen with the stable version of the plugin and nativescript 7+ or with the plugin version of #420? (nativescript 7 compatibility PR)