Open ray007 opened 4 years ago
Not sure if it's a typescript
problem, or a problem of the existing js-file, but the exception happens in svg.common.js
in the constructor:
var SVGImage = (function (_super) {
__extends(SVGImage, _super);
function SVGImage(options) {
return _super.call(this) || this;
}
...
}
And the call _super.call(this)
is the one the browser is complaining about.
Update: this does seem to be a problem of typescript output.
But for nativescript 7, maybe setting the target to "es6"
could fix the problem?
@ray007 This fork works in NS7 https://github.com/SergeyMell/nativescript-plugins/tree/main/packages/nativescript-svg
On upgrading to nativescript 7 (and getting over many other problems),
SVGImage
does not seem to be compatible with the new version. Or maybe it's only the vue-js wrapper? Which I have registered withException output on startup:
Note: I'm using the plugin-version from @jnorkus, but looking at the repository tree, I suspect all will have the same problem.